diff options
| author | Julian Andres Klode <jak@debian.org> | 2011-04-06 11:15:47 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2011-04-06 11:15:47 +0200 |
| commit | 5ad927a38cad08a2d79f327e7bb3cc46316fa6a4 (patch) | |
| tree | 0ad729e5abaeaa66923883251587695ea2e4c00c /apt/debfile.py | |
| parent | b766dc001aeea1c18b0c17c1d5029673ef539ef0 (diff) | |
| download | python-apt-5ad927a38cad08a2d79f327e7bb3cc46316fa6a4.tar.gz | |
all: Fix all instances of ResourceWarning about unclosed files
Diffstat (limited to 'apt/debfile.py')
| -rw-r--r-- | apt/debfile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt/debfile.py b/apt/debfile.py index fb4312a1..d0f41def 100644 --- a/apt/debfile.py +++ b/apt/debfile.py @@ -64,7 +64,7 @@ class DebPackage(object): self._installed_conflicts = set() self._failure_string = "" self.filename = filename - self._debfile = apt_inst.DebFile(open(self.filename)) + self._debfile = apt_inst.DebFile(self.filename) control = self._debfile.control.extractdata("control") self._sections = apt_pkg.TagSection(control) self.pkgname = self._sections["Package"] |
