◐ Shell
clean mode source ↗

Message 141734 - Python tracker

BTW, accessing sys.stdout.buffer is not really safe, because if sys.stdout has been replaced with some other object, the buffer attribute might not be available (IIRC StringIO doesn't have it).