mirror of
https://github.com/python/cpython
synced 2024-10-17 04:33:45 +00:00
mkstemp(): The optional "binary" argument is clearly intended to be a
Boolean, so changed its default value from 1 to True.
This commit is contained in:
parent
c21ea74971
commit
f69b3e9edc
|
@ -250,7 +250,7 @@ def gettempdir():
|
|||
_once('tempdir', _get_default_tempdir)
|
||||
return tempdir
|
||||
|
||||
def mkstemp(suffix="", prefix=template, dir=gettempdir(), binary=1):
|
||||
def mkstemp(suffix="", prefix=template, dir=gettempdir(), binary=True):
|
||||
"""mkstemp([suffix, [prefix, [dir, [binary]]]])
|
||||
User-callable function to create and return a unique temporary
|
||||
file. The return value is a pair (fd, name) where fd is the
|
||||
|
|
Loading…
Reference in a new issue