We should close stdin as well.

This commit is contained in:
Jeremy Fincher 2004-12-07 07:43:19 +00:00
parent 517cd03eec
commit 5542ad9e92
1 changed files with 1 additions and 0 deletions

View File

@ -281,6 +281,7 @@ if __name__ == '__main__':
sys.stdin.close()
# Closing these two might cause problems; we log writes to them as
# level WARNING on upkeep.
sys.stdin.close()
sys.stdout.close()
sys.stderr.close()
sys.stdout = StringIO.StringIO()