Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions icecream/icecream.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,13 @@ def isLiteral(s: str) -> bool:


def colorizedStderrPrint(s: str) -> None:
colored = colorize(s)
colored = colorize(s) if hasattr(sys.stderr, 'isatty') and sys.stderr.isatty() else s
with supportTerminalColorsInWindows():
stderr_print(colored)


def colorizedStdoutPrint(s: str) -> None:
colored = colorize(s)
colored = colorize(s) if hasattr(sys.stdout, 'isatty') and sys.stdout.isatty() else s
with supportTerminalColorsInWindows():
print(colored)

Expand Down