mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1278606 [Last commit (Windows: Improve handling of ...) has broken something](https://bugs.launchpad.net/calibre/+bug/1278606)
This commit is contained in:
parent
26e42af7d3
commit
3befc25576
@ -153,7 +153,7 @@ class ColoredStream(Detect):
|
|||||||
|
|
||||||
def __enter__(self):
|
def __enter__(self):
|
||||||
if not self.isatty:
|
if not self.isatty:
|
||||||
return
|
return self
|
||||||
if self.isansi:
|
if self.isansi:
|
||||||
if self.bold:
|
if self.bold:
|
||||||
self.stream.write(ATTRIBUTES['bold'])
|
self.stream.write(ATTRIBUTES['bold'])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user