Skip to content

Instantly share code, notes, and snippets.

@aisk
Created September 7, 2015 02:47
Show Gist options
  • Save aisk/664e425bfe6852098a2d to your computer and use it in GitHub Desktop.
Save aisk/664e425bfe6852098a2d to your computer and use it in GitHub Desktop.
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