aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-09-20 10:57:44 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-09-20 10:57:44 +0000
commit7cb8fb941f09d1ac646be334745f90e16ebd46eb (patch)
treebad100ba3461c881ebd388d29a6ac859a8962a1a /bin/ebuild
parentBug #285637 - Fix NameError exception triggered by InvalidAtom in (diff)
downloadportage-7cb8fb941f09d1ac646be334745f90e16ebd46eb.tar.gz
portage-7cb8fb941f09d1ac646be334745f90e16ebd46eb.tar.bz2
portage-7cb8fb941f09d1ac646be334745f90e16ebd46eb.zip
Update syntax of 'except' statements for compatibility with Python 3.
(2to3-3.1 -f except -nw ${FILES}) svn path=/main/trunk/; revision=14289
Diffstat (limited to 'bin/ebuild')
-rwxr-xr-xbin/ebuild6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ebuild b/bin/ebuild
index 18abb00e8..e41764b8e 100755
--- a/bin/ebuild
+++ b/bin/ebuild
@@ -255,17 +255,17 @@ for arg in pargs:
except KeyError:
# aux_get error
a = 1
- except UnsupportedAPIException, e:
+ except UnsupportedAPIException as e:
from textwrap import wrap
msg = wrap(str(e), 70)
del e
for x in msg:
portage.writemsg("!!! %s\n" % x, noiselevel=-1)
a = 1
- except PortagePackageException, e:
+ except PortagePackageException as e:
portage.writemsg("!!! %s\n" % (e,), noiselevel=-1)
a = 1
- except PermissionDenied, e:
+ except PermissionDenied as e:
portage.writemsg("!!! Permission Denied: %s\n" % (e,), noiselevel=-1)
a = 1
if a == None: