summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-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")