summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>2010-06-25 19:29:52 +0200
committerArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>2010-06-25 19:29:52 +0200
commit89f602d504cb8c2d51e13c8503f098749a09e001 (patch)
tree42d56225c03a9731a1fc453325b0497bd81a295e
parentf006bd04d9bc7ea29c0da7801b9ba567601df263 (diff)
downloadportage-89f602d504cb8c2d51e13c8503f098749a09e001.tar.gz
portage-89f602d504cb8c2d51e13c8503f098749a09e001.tar.bz2
portage-89f602d504cb8c2d51e13c8503f098749a09e001.zip
Bug #325505: Fix UnicodeEncodeError in _emerge.actions.action_info().
-rw-r--r--pym/_emerge/actions.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py
index d5035cca9..9e2c88fe0 100644
--- a/pym/_emerge/actions.py
+++ b/pym/_emerge/actions.py
@@ -1296,7 +1296,10 @@ def action_info(settings, trees, myopts, myfiles):
for x in myvars:
if x in settings:
if x != "USE":
- print('%s="%s"' % (x, settings[x]))
+ try:
+ print('%s="%s"' % (x, settings[x]))
+ except UnicodeEncodeError:
+ print('%s=<unprintable value with representation: %s>' % (x, repr(settings[x])))
else:
use = set(settings["USE"].split())
for varname in use_expand: