summaryrefslogtreecommitdiff
path: root/apt/debfile.py
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-07-06 09:56:20 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2010-07-06 09:56:20 +0200
commit12ba28e618916bdb418d7e0ed2c8e368ead7e625 (patch)
tree17c2d6f0e53987eadc3b911394d26ea1a355d5b6 /apt/debfile.py
parent9da50582230f21c9267a25eb92dbf3c080dfcafc (diff)
parentb94455e7afd0e08ce1a8aab890dbee0d42566d7b (diff)
downloadpython-apt-12ba28e618916bdb418d7e0ed2c8e368ead7e625.tar.gz
fix py3 compatibility
Diffstat (limited to 'apt/debfile.py')
-rw-r--r--apt/debfile.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/apt/debfile.py b/apt/debfile.py
index 06854cf2..f969f485 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):