diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2010-07-06 09:45:16 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2010-07-06 09:45:16 +0200 |
| commit | b94455e7afd0e08ce1a8aab890dbee0d42566d7b (patch) | |
| tree | 64f7e5bae5623eb97c8df3e05c127fd4a569f5d3 /apt | |
| parent | dd86db9ddb22b43867b5b4dc211f4440dec7aa6a (diff) | |
| download | python-apt-b94455e7afd0e08ce1a8aab890dbee0d42566d7b.tar.gz | |
fix debfile to work with py3, update tests
Diffstat (limited to 'apt')
| -rw-r--r-- | apt/debfile.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apt/debfile.py b/apt/debfile.py index 81cd1dd2..16d1b15e 100644 --- a/apt/debfile.py +++ b/apt/debfile.py @@ -62,7 +62,8 @@ class DebPackage(object): self.filename = filename self._debfile = apt_inst.DebFile(open(self.filename)) control = self._debfile.control.extractdata("control") - self._sections = apt_pkg.TagSection(control) + # hm, 'replace' is probably better but python2.6 test fail with that + self._sections = apt_pkg.TagSection(control.decode("UTF-8", 'ignore')) self.pkgname = self._sections["Package"] def __getitem__(self, key): |
