diff --git a/AUTHORS b/AUTHORS index 81e2d49..6053f6d 100644 --- a/AUTHORS +++ b/AUTHORS @@ -27,3 +27,4 @@ Yael Mintz Lumír 'Frenzy' Balhar Lukas Klenk sizhky +Andrej730 diff --git a/pysnooper/__init__.py b/pysnooper/__init__.py index df9fc90..027a7f2 100644 --- a/pysnooper/__init__.py +++ b/pysnooper/__init__.py @@ -24,7 +24,7 @@ import collections __VersionInfo = collections.namedtuple('VersionInfo', ('major', 'minor', 'micro')) -__version__ = '1.2.2' +__version__ = '1.2.3' __version_info__ = __VersionInfo(*(map(int, __version__.split('.')))) del collections, __VersionInfo # Avoid polluting the namespace diff --git a/pysnooper/tracer.py b/pysnooper/tracer.py index 206866c..59509f2 100644 --- a/pysnooper/tracer.py +++ b/pysnooper/tracer.py @@ -264,7 +264,7 @@ class Tracer: self.max_variable_length = max_variable_length self.normalize = normalize self.relative_time = relative_time - self.color = color + self.color = color and (output is None) if self.color: self._FOREGROUND_BLUE = '\x1b[34m'