Lines 63-68
Link Here
|
63 |
from portage_exception import ParseError |
63 |
from portage_exception import ParseError |
64 |
from portage_exec import find_binary, spawn |
64 |
from portage_exec import find_binary, spawn |
65 |
|
65 |
|
|
|
66 |
import output |
66 |
from output import bold, create_color_func, darkgreen, \ |
67 |
from output import bold, create_color_func, darkgreen, \ |
67 |
green, nocolor, red, turquoise, yellow |
68 |
green, nocolor, red, turquoise, yellow |
68 |
|
69 |
|
Lines 403-409
Link Here
|
403 |
self._styles = styles |
404 |
self._styles = styles |
404 |
|
405 |
|
405 |
def write(self, s): |
406 |
def write(self, s): |
406 |
if self._styles: |
407 |
if output.havecolor and self._styles: |
407 |
for style in self._styles: |
408 |
for style in self._styles: |
408 |
self._file.write(self._codes[style]) |
409 |
self._file.write(self._codes[style]) |
409 |
self._file.write(s) |
410 |
self._file.write(s) |