mirror of
https://github.com/python/cpython.git
synced 2024-11-28 12:31:14 +08:00
My wish for TempFile is fulfilled.
This commit is contained in:
parent
f0c7416157
commit
92bab812f7
@ -776,7 +776,7 @@ class FieldStorage:
|
||||
|
||||
"""
|
||||
import tempfile
|
||||
return tempfile.TemporaryFile("w+")
|
||||
return tempfile.TemporaryFile("w+", encoding="utf-8", newline="\n")
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user