Author: guido.van.rossum
Date: Tue Aug 28 05:32:38 2007
New Revision: 57595

Modified:
   python/branches/py3k/Lib/cgi.py
Log:
My wish for TempFile is fulfilled.


Modified: python/branches/py3k/Lib/cgi.py
==============================================================================
--- python/branches/py3k/Lib/cgi.py     (original)
+++ python/branches/py3k/Lib/cgi.py     Tue Aug 28 05:32:38 2007
@@ -776,7 +776,7 @@
 
         """
         import tempfile
-        return tempfile.TemporaryFile("w+")
+        return tempfile.TemporaryFile("w+", encoding="utf-8", newline="\n")
 
 
 
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to