Commit f69b3e9e authored by Tim Peters's avatar Tim Peters

mkstemp(): The optional "binary" argument is clearly intended to be a

Boolean, so changed its default value from 1 to True.
parent c21ea749
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment