Created
September 7, 2015 02:47
-
-
Save aisk/664e425bfe6852098a2d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os import sys | |
# make stdout and stderr without buffer | |
sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0) | |
sys.stderr = os.fdopen(sys.stderr.fileno(), 'w', 0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment