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

View File

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