diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-08-14 01:51:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-14 01:51:21 (GMT) |
commit | 2a9f709ba23c8f6aa2bed821aacc4e7baecde383 (patch) | |
tree | 46a8a4a9126ff2f1c9510988cb506d98f2c648bd /Doc/library | |
parent | e05f20b371ec8be939c0f79ef324dbc65bd56ecd (diff) | |
download | cpython-2a9f709ba23c8f6aa2bed821aacc4e7baecde383.zip cpython-2a9f709ba23c8f6aa2bed821aacc4e7baecde383.tar.gz cpython-2a9f709ba23c8f6aa2bed821aacc4e7baecde383.tar.bz2 |
bpo-41410: Fix outdated info in mkstemp docs (GH-21701)
Automerge-Triggered-By: @ericvsmith
(cherry picked from commit e55de68be3e5b977a17d3c0ac9805b0feff8fedc)
Co-authored-by: Rishav Kundu <rk@rishav.io>
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/tempfile.rst | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Doc/library/tempfile.rst b/Doc/library/tempfile.rst index a59817c..3a2b88c 100644 --- a/Doc/library/tempfile.rst +++ b/Doc/library/tempfile.rst @@ -175,9 +175,8 @@ The module defines the following user-callable items: If you want to force a bytes return value with otherwise default behavior, pass ``suffix=b''``. - If *text* is specified, it indicates whether to open the file in binary - mode (the default) or text mode. On some platforms, this makes no - difference. + If *text* is specified and true, the file is opened in text mode. + Otherwise, (the default) the file is opened in binary mode. :func:`mkstemp` returns a tuple containing an OS-level handle to an open file (as would be returned by :func:`os.open`) and the absolute pathname |