Commit 16b98de9 authored by Yoshinori Okuji's avatar Yoshinori Okuji

No reason to make stdin or stderr be unbuffered.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17061 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 31ee1920
No related merge requests found
......@@ -346,11 +346,9 @@ def main():
sys.exit(len(result.failures) + len(result.errors))
if __name__ == '__main__':
# Force stdin, stdout and stderr to be totally unbuffered.
# Force stdout to be totally unbuffered.
try:
sys.stdin = os.fdopen(0, "rb", 0)
sys.stdout = os.fdopen(1, "wb", 0)
sys.stderr = os.fdopen(2, "wb", 0)
except OSError:
pass
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment