public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] portage r12920 - main/branches/2.1.6/pym/_emerge
@ 2009-03-11  5:56 Zac Medico (zmedico)
  0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2009-03-11  5:56 UTC (permalink / raw
  To: gentoo-commits

Author: zmedico
Date: 2009-03-11 05:56:33 +0000 (Wed, 11 Mar 2009)
New Revision: 12920

Modified:
   main/branches/2.1.6/pym/_emerge/__init__.py
Log:
Decode terminal codes from binary when necessary, for python-3.0 compatibility
since sys.stdout is a text stream. (trunk r12649)

Modified: main/branches/2.1.6/pym/_emerge/__init__.py
===================================================================
--- main/branches/2.1.6/pym/_emerge/__init__.py	2009-03-11 05:56:01 UTC (rev 12919)
+++ main/branches/2.1.6/pym/_emerge/__init__.py	2009-03-11 05:56:33 UTC (rev 12920)
@@ -9609,6 +9609,9 @@
 			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):
 		"""




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-03-11  5:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-11  5:56 [gentoo-commits] portage r12920 - main/branches/2.1.6/pym/_emerge Zac Medico (zmedico)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox