diff Lib/cgi.py @ 42932:aa3950f111d9

My wish for TempFile is fulfilled.
author Guido van Rossum <guido@python.org>
date Tue, 28 Aug 2007 03:32:38 +0000
parents cbd50ece3b61
children 907a45df1295
line wrap: on
line diff
--- a/Lib/cgi.py	Tue Aug 28 03:29:45 2007 +0000
+++ b/Lib/cgi.py	Tue Aug 28 03:32:38 2007 +0000
@@ -776,7 +776,7 @@
 
         """
         import tempfile
-        return tempfile.TemporaryFile("w+")
+        return tempfile.TemporaryFile("w+", encoding="utf-8", newline="\n")