From 92bab812f7e9b7a27054cfa302223c3f583bff9c Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 28 Aug 2007 03:32:38 +0000 Subject: My wish for TempFile is fulfilled. --- Lib/cgi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/cgi.py') diff --git a/Lib/cgi.py b/Lib/cgi.py index 6f76cb5c241..4cf96092995 100755 --- a/Lib/cgi.py +++ b/Lib/cgi.py @@ -776,7 +776,7 @@ class FieldStorage: """ import tempfile - return tempfile.TemporaryFile("w+") + return tempfile.TemporaryFile("w+", encoding="utf-8", newline="\n") -- cgit v1.2.3