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

Skip to content

Commit 7099583

Browse files
committed
markup corrections
1 parent b28271f commit 7099583

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

Doc/lib/libtempfile.tex

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ \section{\module{tempfile} ---
1313

1414
In version 2.3 of Python, this module was overhauled for enhanced
1515
security. 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
1919
by this module no longer contain the process ID; instead a string of
2020
six random characters is used.
2121

@@ -39,8 +39,8 @@ \section{\module{tempfile} ---
3939
the object is garbage collected). Under \UNIX, the directory entry
4040
for the file is removed immediately after the file is created. Other
4141
platforms 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

4545
The \var{mode} parameter defaults to \code{'w+b'} so that the file
4646
created can be read and written without being closed. Binary mode is
@@ -49,15 +49,15 @@ \section{\module{tempfile} ---
4949
meaning that the operating system default is used.
5050

5151
The \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,
6161
except that the file is guaranteed to have a visible name in the file
6262
system (on \UNIX, the directory entry is not unlinked). That name can
6363
be retrieved from the \member{name} member of the file object. Whether
@@ -74,16 +74,16 @@ \section{\module{tempfile} ---
7474
Creates a temporary file in the most secure manner possible. There
7575
are no race conditions in the file's creation, assuming that the
7676
platform 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
7878
creating user ID. If the platform uses permission bits to indicate
7979
whether a file is executable, the file is executable by no one. The
8080
file 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
8383
responsible for deleting the temporary file when done with it.
8484

8585
If \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
8787
dot between the file name and the suffix; if you need one, put it at
8888
the beginning of \var{suffix}.
8989

@@ -97,8 +97,8 @@ \section{\module{tempfile} ---
9797
binary mode (the default) or text mode. On some platforms, this makes
9898
no 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
102102
absolute pathname of that file, in that order.
103103
\versionadded{2.3}
104104
\end{funcdesc}
@@ -111,13 +111,13 @@ \section{\module{tempfile} ---
111111
directory is readable, writable, and searchable only by the
112112
creating 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
115115
temporary directory and its contents when done with it.
116116

117117
The \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.}
128128
Return an absolute pathname of a file that did not exist at the time
129129
the 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
133133
program. By the time you get around to doing anything with the file

0 commit comments

Comments
 (0)