Skip to content
Closed
Changes from all commits
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
6 changes: 6 additions & 0 deletions colorama/initialise.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ def init(autoreset=False, convert=None, strip=None, wrap=True):
if not wrap and any([autoreset, convert, strip]):
raise ValueError('wrap=False conflicts with any other arg=True')

# This function is only intended to have any effect when it's run on Windows.
# To ensure that unexpected side effects do not occur on any other platform,
# we return immediately if not running on Windows.
if sys.platform != 'win32':
return

global wrapped_stdout, wrapped_stderr
global orig_stdout, orig_stderr

Expand Down