mirror of
https://github.com/cool-RR/PySnooper.git
synced 2026-01-23 02:14:04 +00:00
Don't write color escape characters to file
This commit is contained in:
parent
3c0f9eb65a
commit
05212d3092
1 changed files with 1 additions and 1 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue