summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-08-05 15:22:53 -0700
committerZac Medico <zmedico@gentoo.org>2010-08-05 15:22:53 -0700
commit7606baaf099a9ea209507a677fcc60077d390052 (patch)
tree941d79503504f97bfb90c0418344fb3ea978cceb /pym
parentaa05f70c6053e0e106a53c1af1c69ec39735807b (diff)
downloadportage-7606baaf099a9ea209507a677fcc60077d390052.tar.gz
portage-7606baaf099a9ea209507a677fcc60077d390052.tar.bz2
portage-7606baaf099a9ea209507a677fcc60077d390052.zip
Use ValueError.args since direct indexing of ValueError is not
supported in python3, as reported in bug 241132, commment #4.
Diffstat (limited to 'pym')
-rw-r--r--pym/_emerge/actions.py2
-rw-r--r--pym/_emerge/main.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py
index bbab613b3..e8c6e3ad1 100644
--- a/pym/_emerge/actions.py
+++ b/pym/_emerge/actions.py
@@ -2354,7 +2354,7 @@ def action_uninstall(settings, trees, ldpath_mtimes,
for line in textwrap.wrap(msg, 70):
writemsg_level("!!! %s\n" % (line,),
level=logging.ERROR, noiselevel=-1)
- for i in e[0]:
+ for i in e.args[0]:
writemsg_level(" %s\n" % colorize("INFORM", i),
level=logging.ERROR, noiselevel=-1)
writemsg_level("\n", level=logging.ERROR, noiselevel=-1)
diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py
index 92df3bfb4..aa5891f90 100644
--- a/pym/_emerge/main.py
+++ b/pym/_emerge/main.py
@@ -1607,7 +1607,7 @@ def emerge_main():
for line in textwrap.wrap(msg, 70):
writemsg_level("!!! %s\n" % (line,),
level=logging.ERROR, noiselevel=-1)
- for i in e[0]:
+ for i in e.args[0]:
writemsg_level(" %s\n" % colorize("INFORM", i),
level=logging.ERROR, noiselevel=-1)
writemsg_level("\n", level=logging.ERROR, noiselevel=-1)