@@ -13,9 +13,9 @@ \section{\module{tempfile} ---
1313
1414In version 2.3 of Python, this module was overhauled for enhanced
1515security. It now provides three new functions,
16- \function {NamedTemporaryFile}, \function {mkstemp}, and
17- \function {mkdtemp}, which should eliminate all remaining need to use
18- the insecure \function {mktemp} function. Temporary file names created
16+ \function {NamedTemporaryFile() }, \function {mkstemp() }, and
17+ \function {mkdtemp() }, which should eliminate all remaining need to use
18+ the insecure \function {mktemp() } function. Temporary file names created
1919by this module no longer contain the process ID; instead a string of
2020six random characters is used.
2121
@@ -39,8 +39,8 @@ \section{\module{tempfile} ---
3939the object is garbage collected). Under \UNIX , the directory entry
4040for the file is removed immediately after the file is created. Other
4141platforms do not support this; your code should not rely on a
42- \class {TemporaryFile} having or not having a visible name in the file
43- system.
42+ temporary file created using this function having or not having a
43+ visible name in the file system.
4444
4545The \var {mode} parameter defaults to \code {'w+b'} so that the file
4646created can be read and written without being closed. Binary mode is
@@ -49,15 +49,15 @@ \section{\module{tempfile} ---
4949meaning that the operating system default is used.
5050
5151The \var {dir}, \var {prefix} and \var {suffix} parameters are passed to
52- \function {mkstemp}.
52+ \function {mkstemp() }.
5353\end {funcdesc }
5454
5555\begin {funcdesc }{NamedTemporaryFile}{\optional {mode='w+b'}
5656 \optional {, bufsize=-1}
5757 \optional {, suffix}
5858 \optional {, prefix}
5959 \optional {, dir}}
60- This function operates exactly as \function {TemporaryFile} does,
60+ This function operates exactly as \function {TemporaryFile() } does,
6161except that the file is guaranteed to have a visible name in the file
6262system (on \UNIX , the directory entry is not unlinked). That name can
6363be retrieved from the \member {name} member of the file object. Whether
@@ -74,16 +74,16 @@ \section{\module{tempfile} ---
7474Creates a temporary file in the most secure manner possible. There
7575are no race conditions in the file's creation, assuming that the
7676platform properly implements the \constant {O_EXCL} flag for
77- \function {os.open}. The file is readable and writable only by the
77+ \function {os.open() }. The file is readable and writable only by the
7878creating user ID. If the platform uses permission bits to indicate
7979whether a file is executable, the file is executable by no one. The
8080file descriptor is not inherited by child processes.
8181
82- Unlike \function {TemporaryFile}, the user of \function {mkstemp} is
82+ Unlike \function {TemporaryFile() }, the user of \function {mkstemp() } is
8383responsible for deleting the temporary file when done with it.
8484
8585If \var {suffix} is specified, the file name will end with that suffix,
86- otherwise there will be no suffix. \function {mkstemp} does not put a
86+ otherwise there will be no suffix. \function {mkstemp() } does not put a
8787dot between the file name and the suffix; if you need one, put it at
8888the beginning of \var {suffix}.
8989
@@ -97,8 +97,8 @@ \section{\module{tempfile} ---
9797binary mode (the default) or text mode. On some platforms, this makes
9898no difference.
9999
100- \function {mkstemp} returns a tuple containing an OS-level handle to
101- an open file (as would be returned by \function {os.open}) and the
100+ \function {mkstemp() } returns a tuple containing an OS-level handle to
101+ an open file (as would be returned by \function {os.open() }) and the
102102absolute pathname of that file, in that order.
103103\versionadded {2.3}
104104\end {funcdesc }
@@ -111,13 +111,13 @@ \section{\module{tempfile} ---
111111directory is readable, writable, and searchable only by the
112112creating user ID.
113113
114- The user of \function {mkdtemp} is responsible for deleting the
114+ The user of \function {mkdtemp() } is responsible for deleting the
115115temporary directory and its contents when done with it.
116116
117117The \var {prefix}, \var {suffix}, and \var {dir} arguments are the same
118- as for \function {mkstemp}.
118+ as for \function {mkstemp() }.
119119
120- \function {mkdtemp} returns the absolute pathname of the new directory.
120+ \function {mkdtemp() } returns the absolute pathname of the new directory.
121121\versionadded {2.3}
122122\end {funcdesc }
123123
@@ -127,7 +127,7 @@ \section{\module{tempfile} ---
127127\deprecated {2.3}{Use \function {mkstemp()} instead.}
128128Return an absolute pathname of a file that did not exist at the time
129129the call is made. The \var {prefix}, \var {suffix}, and \var {dir}
130- arguments are the same as for \function {mkstemp}.
130+ arguments are the same as for \function {mkstemp() }.
131131
132132\warning {Use of this function may introduce a security hole in your
133133program. By the time you get around to doing anything with the file
0 commit comments