Fix #1278606 [Last commit (Windows: Improve handling of ...) has broken something](https://bugs.launchpad.net/calibre/+bug/1278606)

This commit is contained in:
Kovid Goyal 2014-02-11 06:11:44 +05:30
parent 26e42af7d3
commit 3befc25576

View File

@ -153,7 +153,7 @@ class ColoredStream(Detect):
def __enter__(self):
if not self.isatty:
return
return self
if self.isansi:
if self.bold:
self.stream.write(ATTRIBUTES['bold'])