Comment 2 for bug 582974

Revision history for this message
Gordon Tyler (doxxx) wrote :

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)