diff options
-rw-r--r-- | pym/portage/output.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage/output.py b/pym/portage/output.py index 148fddd0f..c491897f4 100644 --- a/pym/portage/output.py +++ b/pym/portage/output.py @@ -331,7 +331,8 @@ class ConsoleStyleFile(object): self._styles = styles def write(self, s): - if self._styles: + global havecolor + if havecolor and self._styles: for style in self._styles: self._file.write(codes[style]) self._file.write(s) |