diff options
| author | Michael Vogt <mvo@debian.org> | 2011-02-18 22:37:34 +0100 |
|---|---|---|
| committer | Michael Vogt <mvo@debian.org> | 2011-02-18 22:37:34 +0100 |
| commit | be46a92a5621d2c199792ead5371afb979f32f9c (patch) | |
| tree | 3d4397fc802685b433b1f72cf7067907c4a6540f /apt/debfile.py | |
| parent | 45100d466f6c392758ff2e490cdfee9aae7e55a7 (diff) | |
| parent | 2885341cf3d7a1050be1bf2a45237395a3149feb (diff) | |
| download | python-apt-be46a92a5621d2c199792ead5371afb979f32f9c.tar.gz | |
merged from lp:~mvo/python-apt/mvo
Diffstat (limited to 'apt/debfile.py')
| -rw-r--r-- | apt/debfile.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apt/debfile.py b/apt/debfile.py index 996a4cb3..86fd221b 100644 --- a/apt/debfile.py +++ b/apt/debfile.py @@ -461,7 +461,7 @@ class DebPackage(object): for pkg in self._need_pkgs: try: self._cache[pkg].mark_install(from_user=False) - except SystemError, e: + except SystemError as e: self._failure_string = _("Cannot install '%s'") % pkg self._cache.clear() return False @@ -543,7 +543,7 @@ class DebPackage(object): # auto-convert to hex try: data = unicode(data, "utf-8") - except Exception, e: + except Exception as e: new_data = _("Automatically converted to printable ascii:\n") new_data += self.to_strish(data) return new_data |
