diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2011-01-10 18:08:13 +0100 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2011-01-10 18:08:13 +0100 |
| commit | 660c5bbf9d2793a392572e1c23eb36b4e9298792 (patch) | |
| tree | a74476633321630911690e7f513869efe5026132 /apt/package.py | |
| parent | b221e38a33871bc7040e457051c38ef222e618e5 (diff) | |
| download | python-apt-660c5bbf9d2793a392572e1c23eb36b4e9298792.tar.gz | |
merged lp:~geser/ubuntu/natty/python-apt/build-with-py3.2 (manually as bzr thinks the branches have nothing in common)
Diffstat (limited to 'apt/package.py')
| -rw-r--r-- | apt/package.py | 2 |
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) |
