My wish for TempFile is fulfilled.

This commit is contained in:
Guido van Rossum 2007-08-28 03:32:38 +00:00
parent f0c7416157
commit 92bab812f7

View File

@ -776,7 +776,7 @@ class FieldStorage:
"""
import tempfile
return tempfile.TemporaryFile("w+")
return tempfile.TemporaryFile("w+", encoding="utf-8", newline="\n")