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

Skip to content

Commit 614438a

Browse files
committed
fix markup buglets
1 parent f5c87c4 commit 614438a

1 file changed

Lines changed: 13 additions & 22 deletions

File tree

Doc/lib/libtempfile.tex

Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,9 @@ \section{\module{tempfile} ---
2828

2929
The module defines the following user-callable functions:
3030

31-
\begin{funcdesc}{TemporaryFile}{\optional{mode='w+b'}
32-
\optional{, bufsize=-1}
33-
\optional{, suffix}
34-
\optional{, prefix}
35-
\optional{, dir}}
31+
\begin{funcdesc}{TemporaryFile}{\optional{mode=\code{'w+b'}\optional{,
32+
bufsize=\code{-1}\optional{,
33+
suffix\optional{, prefix\optional{, dir}}}}}}
3634
Return a file (or file-like) object that can be used as a temporary
3735
storage area. The file is created using \function{mkstemp}. It will
3836
be destroyed as soon as it is closed (including an implicit close when
@@ -52,11 +50,10 @@ \section{\module{tempfile} ---
5250
\function{mkstemp()}.
5351
\end{funcdesc}
5452

55-
\begin{funcdesc}{NamedTemporaryFile}{\optional{mode='w+b'}
56-
\optional{, bufsize=-1}
57-
\optional{, suffix}
58-
\optional{, prefix}
59-
\optional{, dir}}
53+
\begin{funcdesc}{NamedTemporaryFile}{\optional{mode=\code{'w+b'}\optional{,
54+
bufsize=\code{-1}\optional{,
55+
suffix\optional{, prefix\optional{,
56+
dir}}}}}}
6057
This function operates exactly as \function{TemporaryFile()} does,
6158
except that the file is guaranteed to have a visible name in the file
6259
system (on \UNIX, the directory entry is not unlinked). That name can
@@ -67,10 +64,8 @@ \section{\module{tempfile} ---
6764
\versionadded{2.3}
6865
\end{funcdesc}
6966

70-
\begin{funcdesc}{mkstemp}{\optional{suffix}
71-
\optional{, prefix}
72-
\optional{, dir}
73-
\optional{, text=False}}
67+
\begin{funcdesc}{mkstemp}{\optional{suffix\optional{,
68+
prefix\optional{, dir\optional{, text}}}}}
7469
Creates a temporary file in the most secure manner possible. There
7570
are no race conditions in the file's creation, assuming that the
7671
platform properly implements the \constant{O_EXCL} flag for
@@ -103,9 +98,7 @@ \section{\module{tempfile} ---
10398
\versionadded{2.3}
10499
\end{funcdesc}
105100

106-
\begin{funcdesc}{mkdtemp}{\optional{suffix}
107-
\optional{, prefix}
108-
\optional{, dir}}
101+
\begin{funcdesc}{mkdtemp}{\optional{suffix\optional{, prefix\optional{, dir}}}}
109102
Creates a temporary directory in the most secure manner possible.
110103
There are no race conditions in the directory's creation. The
111104
directory is readable, writable, and searchable only by the
@@ -121,9 +114,7 @@ \section{\module{tempfile} ---
121114
\versionadded{2.3}
122115
\end{funcdesc}
123116

124-
\begin{funcdesc}{mktemp}{\optional{suffix}
125-
\optional{, prefix}
126-
\optional{, dir}}
117+
\begin{funcdesc}{mktemp}{\optional{suffix\optional{, prefix\optional{, dir}}}}
127118
\deprecated{2.3}{Use \function{mkstemp()} instead.}
128119
Return an absolute pathname of a file that did not exist at the time
129120
the call is made. The \var{prefix}, \var{suffix}, and \var{dir}
@@ -144,7 +135,7 @@ \section{\module{tempfile} ---
144135
default value for the \var{dir} argument to all the functions defined
145136
in this module.
146137

147-
If \var{tempdir} is unset or \code{None} at any call to any of the
138+
If \code{tempdir} is unset or \code{None} at any call to any of the
148139
above functions, Python searches a standard list of directories and
149140
sets \var{tempdir} to the first one which the calling user can create
150141
files in. The list is:
@@ -172,7 +163,7 @@ \section{\module{tempfile} ---
172163

173164
\begin{funcdesc}{gettempdir}{}
174165
Return the directory currently selected to create temporary files in.
175-
If \var{tempdir} is not None, this simply returns its contents;
166+
If \code{tempdir} is not \code{None}, this simply returns its contents;
176167
otherwise, the search described above is performed, and the result
177168
returned.
178169
\end{funcdesc}

0 commit comments

Comments
 (0)