From 3befc25576689da2b157275758d775d239fb92ea Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 11 Feb 2014 06:11:44 +0530 Subject: [PATCH] Fix #1278606 [Last commit (Windows: Improve handling of ...) has broken something](https://bugs.launchpad.net/calibre/+bug/1278606) --- src/calibre/utils/terminal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/utils/terminal.py b/src/calibre/utils/terminal.py index d77b2bf4ef..e292dc2e55 100644 --- a/src/calibre/utils/terminal.py +++ b/src/calibre/utils/terminal.py @@ -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'])