summaryrefslogtreecommitdiff
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
parentAdd a test case for lazyimport._preload_portage_submodules(). (diff)
downloadportage-multirepo-7606baaf099a9ea209507a677fcc60077d390052.tar.gz
portage-multirepo-7606baaf099a9ea209507a677fcc60077d390052.tar.bz2
portage-multirepo-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 bbab613b..e8c6e3ad 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 92df3bfb..aa5891f9 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)