mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
tempfile's mkstemp(): Changed last argument from
binary=True to text=False by BDFL Pronouncement. All other changes follow from this. The change to the docs is ready to go, but blocked by another JackMacLock in the doc directory.
This commit is contained in:
parent
5c08a99b77
commit
04490bf225
2 changed files with 11 additions and 11 deletions
|
@ -56,7 +56,7 @@ def runtest(hier, code):
|
|||
root = tempfile.mkdtemp()
|
||||
mkhier(root, hier)
|
||||
savepath = sys.path[:]
|
||||
fd, fname = tempfile.mkstemp(binary=False)
|
||||
fd, fname = tempfile.mkstemp(text=True)
|
||||
os.write(fd, code)
|
||||
os.close(fd)
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue