summaryrefslogtreecommitdiff
path: root/Lib/cgi.py
diff options
context:
space:
mode:
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 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")