bpo-41410: Fix outdated info in mkstemp docs (GH-21701)

Automerge-Triggered-By: @ericvsmith
(cherry picked from commit e55de68be3)

Co-authored-by: Rishav Kundu <rk@rishav.io>
This commit is contained in:
Miss Islington (bot) 2020-08-13 18:53:43 -07:00 committed by GitHub
parent 75c2281762
commit 7c288413db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

View file

@ -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