summaryrefslogtreecommitdiffstats
path: root/Lib/tempfile.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/tempfile.py')
-rw-r--r--Lib/tempfile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/tempfile.py b/Lib/tempfile.py
index 8ed4599..24b78bf 100644
--- a/Lib/tempfile.py
+++ b/Lib/tempfile.py
@@ -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