def _colorama_workaround():
if sys.platform.startswith("<STR_LIT:win32>"):<EOL><INDENT>try:<EOL><INDENT>import colorama  <EOL><DEDENT>except ImportError:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>
Ensure colorama is imported so that it attaches to the correct stdio
handles on Windows.

colorama uses the terminal on import time. So if something does the
first import of colorama while I/O capture is active, colorama will
fail in various ways.