diff options
author | Guido van Rossum <guido@python.org> | 2007-08-28 03:32:38 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-08-28 03:32:38 +0000 |
commit | 92bab812f7e9b7a27054cfa302223c3f583bff9c (patch) | |
tree | 58ed1387b114269c29b5f4286cbb5de0b1d49629 | |
parent | f0c7416157f471dbb8ac88aa72202cc984c02700 (diff) | |
download | cpython-git-92bab812f7e9b7a27054cfa302223c3f583bff9c.tar.gz |
My wish for TempFile is fulfilled.
-rwxr-xr-x | Lib/cgi.py | 2 |
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") |