From f69b3e9edc7ebd5c544dc0001c71d9bf16023dcc Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Tue, 13 Aug 2002 23:38:30 +0000 Subject: [PATCH] mkstemp(): The optional "binary" argument is clearly intended to be a Boolean, so changed its default value from 1 to True. --- Lib/tempfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/tempfile.py b/Lib/tempfile.py index 8ed4599544..24b78bf54f 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 -- 2.40.0