mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-02-13 23:38:20 +00:00
britney.py: Remove redundant open before TagFile
Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
parent
5bbca73391
commit
7b0d4023d0
@ -562,8 +562,7 @@ class Britney(object):
|
||||
|
||||
self.__log("Loading source packages from %s" % filename)
|
||||
|
||||
with open(filename, encoding='utf-8') as f:
|
||||
Packages = apt_pkg.TagFile(f)
|
||||
Packages = apt_pkg.TagFile(filename)
|
||||
get_field = Packages.section.get
|
||||
step = Packages.step
|
||||
|
||||
@ -618,8 +617,7 @@ class Britney(object):
|
||||
|
||||
all_binaries = self.all_binaries
|
||||
|
||||
with open(filename, encoding='utf-8') as f:
|
||||
Packages = apt_pkg.TagFile(f)
|
||||
Packages = apt_pkg.TagFile(filename)
|
||||
get_field = Packages.section.get
|
||||
step = Packages.step
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user