@@ -28,11 +28,9 @@ \section{\module{tempfile} ---
2828
2929The 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}}}}}}
3634Return a file (or file-like) object that can be used as a temporary
3735storage area. The file is created using \function {mkstemp}. It will
3836be 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}}}}}}
6057This function operates exactly as \function {TemporaryFile()} does,
6158except that the file is guaranteed to have a visible name in the file
6259system (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}}}}}
7469Creates a temporary file in the most secure manner possible. There
7570are no race conditions in the file's creation, assuming that the
7671platform 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}}}}
109102Creates a temporary directory in the most secure manner possible.
110103There are no race conditions in the directory's creation. The
111104directory 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.}
128119Return an absolute pathname of a file that did not exist at the time
129120the call is made. The \var {prefix}, \var {suffix}, and \var {dir}
@@ -144,7 +135,7 @@ \section{\module{tempfile} ---
144135default value for the \var {dir} argument to all the functions defined
145136in 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
148139above functions, Python searches a standard list of directories and
149140sets \var {tempdir} to the first one which the calling user can create
150141files in. The list is:
@@ -172,7 +163,7 @@ \section{\module{tempfile} ---
172163
173164\begin {funcdesc }{gettempdir}{}
174165Return 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;
176167otherwise, the search described above is performed, and the result
177168returned.
178169\end {funcdesc }
0 commit comments