From 3c0f9eb65a4f32be3563619d9d2710e0e7f080f9 Mon Sep 17 00:00:00 2001 From: Ram Rachum Date: Thu, 10 Apr 2025 23:56:22 +0300 Subject: [PATCH 1/3] Include Andrej730 in AUTHORS --- AUTHORS | 1 + 1 file changed, 1 insertion(+) 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 From 05212d309275778ebf42674edbba8c19aed49192 Mon Sep 17 00:00:00 2001 From: Ram Rachum Date: Sat, 31 May 2025 16:21:06 -0700 Subject: [PATCH 2/3] Don't write color escape characters to file --- pysnooper/tracer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' From 0561a89c0ec88d11f38c6ef815d12c0423300fe1 Mon Sep 17 00:00:00 2001 From: Ram Rachum Date: Sat, 31 May 2025 16:21:24 -0700 Subject: [PATCH 3/3] Bump version to 1.2.3 --- pysnooper/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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