svn path=/main/branches/2.1.2/; revision=9152
from portage_exception import ParseError
from portage_exec import find_binary, spawn
+import output
from output import bold, create_color_func, darkgreen, \
green, nocolor, red, turquoise, yellow
self._styles = styles
def write(self, s):
- if self._styles:
+ if output.havecolor and self._styles:
for style in self._styles:
self._file.write(self._codes[style])
self._file.write(s)