summaryrefslogtreecommitdiff
path: root/apt/package.py
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2011-02-18 22:37:34 +0100
committerMichael Vogt <mvo@debian.org>2011-02-18 22:37:34 +0100
commitbe46a92a5621d2c199792ead5371afb979f32f9c (patch)
tree3d4397fc802685b433b1f72cf7067907c4a6540f /apt/package.py
parent45100d466f6c392758ff2e490cdfee9aae7e55a7 (diff)
parent2885341cf3d7a1050be1bf2a45237395a3149feb (diff)
downloadpython-apt-be46a92a5621d2c199792ead5371afb979f32f9c.tar.gz
merged from lp:~mvo/python-apt/mvo
Diffstat (limited to 'apt/package.py')
-rw-r--r--apt/package.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt/package.py b/apt/package.py
index 475edb76..f16ac2a4 100644
--- a/apt/package.py
+++ b/apt/package.py
@@ -338,7 +338,7 @@ class Version(object):
if not isinstance(dsc, unicode):
# Only convert where needed (i.e. Python 2.X)
dsc = unicode(dsc, "utf-8")
- except UnicodeDecodeError, err:
+ except UnicodeDecodeError as err:
return _("Invalid unicode in description for '%s' (%s). "
"Please report.") % (self.package.name, err)