mirror of
https://github.com/python/cpython.git
synced 2025-08-27 12:16:04 +00:00
My wish for TempFile is fulfilled.
This commit is contained in:
parent
f0c7416157
commit
92bab812f7
1 changed files with 1 additions and 1 deletions
|
@ -776,7 +776,7 @@ class FieldStorage:
|
|||
|
||||
"""
|
||||
import tempfile
|
||||
return tempfile.TemporaryFile("w+")
|
||||
return tempfile.TemporaryFile("w+", encoding="utf-8", newline="\n")
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue