summaryrefslogtreecommitdiffstats
path: root/Lib/cgi.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-08-28 03:32:38 (GMT)
committerGuido van Rossum <guido@python.org>2007-08-28 03:32:38 (GMT)
commit92bab812f7e9b7a27054cfa302223c3f583bff9c (patch)
tree58ed1387b114269c29b5f4286cbb5de0b1d49629 /Lib/cgi.py
parentf0c7416157f471dbb8ac88aa72202cc984c02700 (diff)
downloadcpython-92bab812f7e9b7a27054cfa302223c3f583bff9c.zip
cpython-92bab812f7e9b7a27054cfa302223c3f583bff9c.tar.gz
cpython-92bab812f7e9b7a27054cfa302223c3f583bff9c.tar.bz2
My wish for TempFile is fulfilled.
Diffstat (limited to 'Lib/cgi.py')
-rwxr-xr-xLib/cgi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/cgi.py b/Lib/cgi.py
index 6f76cb5..4cf9609 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")