diff options
author | Tim Peters <tim.peters@gmail.com> | 2002-08-13 23:38:30 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2002-08-13 23:38:30 (GMT) |
commit | f69b3e9edc7ebd5c544dc0001c71d9bf16023dcc (patch) | |
tree | cf6c053eb2ef49c4c125d47b1201c3adbf00f2e5 | |
parent | c21ea749710c677d8e0ca7c2f49aaae7b7316a9f (diff) | |
download | cpython-f69b3e9edc7ebd5c544dc0001c71d9bf16023dcc.zip cpython-f69b3e9edc7ebd5c544dc0001c71d9bf16023dcc.tar.gz cpython-f69b3e9edc7ebd5c544dc0001c71d9bf16023dcc.tar.bz2 |
mkstemp(): The optional "binary" argument is clearly intended to be a
Boolean, so changed its default value from 1 to True.
-rw-r--r-- | Lib/tempfile.py | 2 |
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 |