Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2f238c1

Browse files
committed
mkstemp's last argument changed from binary=True to text=False.
1 parent 8e966ee commit 2f238c1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/lib/libtempfile.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ \section{\module{tempfile} ---
6767
\begin{funcdesc}{mkstemp}{\optional{suffix}
6868
\optional{, prefix}
6969
\optional{, dir}
70-
\optional{, binary=1}}
70+
\optional{, text=False}}
7171
Creates a temporary file in the most secure manner possible. There
7272
are no race conditions in the file's creation, assuming that the
7373
platform properly implements the \constant{O_EXCL} flag for
@@ -90,7 +90,7 @@ \section{\module{tempfile} ---
9090
If \var{dir} is specified, the file will be created in that directory;
9191
otherwise, a default directory is used.
9292

93-
If \var{binary} is specified, it indicates whether to open the file in
93+
If \var{text} is specified, it indicates whether to open the file in
9494
binary mode (the default) or text mode. On some platforms, this makes
9595
no difference.
9696

0 commit comments

Comments
 (0)