There is a way to do it using the msvcrt module, which I used when fixing a bug a few weeks back in the way selftest --parallel=subprocess was handled on win32.
if sys.platform == "win32":
import msvcrt
msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)
There is a way to do it using the msvcrt module, which I used when fixing a bug a few weeks back in the way selftest --parallel= subprocess was handled on win32.
if sys.platform == "win32": setmode( sys.stdout. fileno( ), os.O_BINARY)
import msvcrt
msvcrt.