From: Zac Medico Date: Thu, 5 Aug 2010 22:22:53 +0000 (-0700) Subject: Use ValueError.args since direct indexing of ValueError is not X-Git-Tag: v2.2_rc68~391 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=7606baaf099a9ea209507a677fcc60077d390052;p=portage.git Use ValueError.args since direct indexing of ValueError is not supported in python3, as reported in bug 241132, commment #4. --- 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)