Use map_code_to_color_code() where appropriate inside ConsoleStyleFile.write().
authorZac Medico <zmedico@gentoo.org>
Wed, 17 Jun 2009 04:04:46 +0000 (04:04 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 17 Jun 2009 04:04:46 +0000 (04:04 -0000)
svn path=/main/trunk/; revision=13644

pym/portage/output.py

index 2096b24be6bde4e4a881c07d1f4b321c1b9d2bef..fc9c882d24a8bbc37f73cfdbeca7ba6b130802fc 100644 (file)
@@ -339,7 +339,7 @@ class ConsoleStyleFile(object):
                global havecolor
                if havecolor and self._styles:
                        for style in self._styles:
-                               self._file.write(color_codes[style])
+                               self._file.write(map_code_to_color_code(style))
                        self._file.write(s)
                        self._file.write(color_codes["reset"])
                else: