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:
Tim Peters 2002-08-14 15:41:26 +00:00
parent 5c08a99b77
commit 04490bf225
2 changed files with 11 additions and 11 deletions

View file

@ -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: