projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b83c9c
)
Decode terminal codes from binary when necessary, for python-3.0 compatibility
author
Zac Medico
<zmedico@gentoo.org>
Thu, 19 Feb 2009 12:42:42 +0000
(12:42 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Thu, 19 Feb 2009 12:42:42 +0000
(12:42 -0000)
since sys.stdout is a text stream.
svn path=/main/trunk/; revision=12649
pym/_emerge/__init__.py
patch
|
blob
|
history
diff --git
a/pym/_emerge/__init__.py
b/pym/_emerge/__init__.py
index e8d63492914e7fcda82b9ab40139894ca6c04f04..a5802bbe55baa6916d608b95b6fba143d87a6546 100644
(file)
--- a/
pym/_emerge/__init__.py
+++ b/
pym/_emerge/__init__.py
@@
-9625,6
+9625,9
@@
class JobStatusDisplay(object):
for k, capname in self._termcap_name_map.iteritems():
term_codes[k] = self._default_term_codes[capname]
object.__setattr__(self, "_term_codes", term_codes)
+ for k, v in self._term_codes.items():
+ if not isinstance(v, str):
+ self._term_codes[k] = v.decode()
def _init_term(self):
"""