From 92bab812f7e9b7a27054cfa302223c3f583bff9c Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 28 Aug 2007 03:32:38 +0000 Subject: [PATCH] My wish for TempFile is fulfilled. --- Lib/cgi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/cgi.py b/Lib/cgi.py index 6f76cb5c24..4cf9609299 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") -- 2.50.0