From 7606baaf099a9ea209507a677fcc60077d390052 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 5 Aug 2010 15:22:53 -0700 Subject: [PATCH] Use ValueError.args since direct indexing of ValueError is not supported in python3, as reported in bug 241132, commment #4. --- pym/_emerge/actions.py | 2 +- pym/_emerge/main.py | 2 +- 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) -- 2.26.2