aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2015-01-19 21:58:00 -0800
committerBrian Dolbec <dolsen@gentoo.org>2015-01-30 20:40:29 -0800
commit80fbd3d7da1720844103a202809b7583a3f11c7b (patch)
tree8ec4ab695247647b3ba52717f2b4042b0ad3d2a8 /gkeys/gkeys/base.py
parentgkeys-ldap: Add saving the logfilename to know which log file to push (diff)
downloadgentoo-keys-80fbd3d7da1720844103a202809b7583a3f11c7b.tar.gz
gentoo-keys-80fbd3d7da1720844103a202809b7583a3f11c7b.tar.bz2
gentoo-keys-80fbd3d7da1720844103a202809b7583a3f11c7b.zip
gkeys: Wrap all strings which have %s with _unicode() to prevent decode errors
Hopefully this will stop the intermittent python-2.7 UnicodeDecodeError that some people get during string substitution.
Diffstat (limited to 'gkeys/gkeys/base.py')
-rw-r--r--gkeys/gkeys/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gkeys/gkeys/base.py b/gkeys/gkeys/base.py
index 8308df8..08bfe5f 100644
--- a/gkeys/gkeys/base.py
+++ b/gkeys/gkeys/base.py
@@ -324,7 +324,7 @@ class CliBase(object):
print(' ', msg)
else:
try:
- print("\n".join([x.pretty_print for x in msg]))
+ print(unicode("\n").join([x.pretty_print for x in msg]))
except AttributeError:
for x in msg:
print(' ', x)