diff options
Diffstat (limited to 'gbp/log.py')
-rw-r--r-- | gbp/log.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -18,6 +18,7 @@ """Simple colored logging classes""" import sys +import gbp.tristate logger = None @@ -53,9 +54,9 @@ class Logger(object): if type(color) == type(True): self.color = color else: - if color.lower() == "on": + if color.is_on(): self.color = True - elif color.lower() == "auto": + elif color.is_auto(): if (sys.stderr.isatty() and sys.stdout.isatty()): self.color = True |