Kaydet (Commit) 52136a8b authored tarafından Raymond Hettinger's avatar Raymond Hettinger

Fixed spacing and unbalanced brackets or parenthesis.

üst 71e00332
...@@ -229,5 +229,5 @@ array('d', [1.0, 2.0, 3.14]) ...@@ -229,5 +229,5 @@ array('d', [1.0, 2.0, 3.14])
\url{http://numpy.sourceforge.net/} for further information \url{http://numpy.sourceforge.net/} for further information
about Numerical Python. (A PDF version of the NumPy manual about Numerical Python. (A PDF version of the NumPy manual
is available at is available at
\url{http://numpy.sourceforge.net/numdoc/numdoc.pdf}.} \url{http://numpy.sourceforge.net/numdoc/numdoc.pdf}).}
\end{seealso} \end{seealso}
...@@ -160,7 +160,7 @@ same thing as in the \method{transfercmd()} method. ...@@ -160,7 +160,7 @@ same thing as in the \method{transfercmd()} method.
\begin{methoddesc}{retrlines}{command\optional{, callback}} \begin{methoddesc}{retrlines}{command\optional{, callback}}
Retrieve a file or directory listing in \ASCII{} transfer mode. Retrieve a file or directory listing in \ASCII{} transfer mode.
\var{command} should be an appropriate \samp{RETR} command (see \var{command} should be an appropriate \samp{RETR} command (see
\method{retrbinary()} or a \samp{LIST} command (usually just the string \method{retrbinary()}) or a \samp{LIST} command (usually just the string
\code{'LIST'}). The \var{callback} function is called for each line, \code{'LIST'}). The \var{callback} function is called for each line,
with the trailing CRLF stripped. The default \var{callback} prints with the trailing CRLF stripped. The default \var{callback} prints
the line to \code{sys.stdout}. the line to \code{sys.stdout}.
...@@ -280,7 +280,7 @@ calls (see below). ...@@ -280,7 +280,7 @@ calls (see below).
\begin{methoddesc}{close}{} \begin{methoddesc}{close}{}
Close the connection unilaterally. This should not be applied to an Close the connection unilaterally. This should not be applied to an
already closed connection (such as after a successful call to already closed connection such as after a successful call to
\method{quit()}. After this call the \class{FTP} instance should not \method{quit()}. After this call the \class{FTP} instance should not
be used any more (after a call to \method{close()} or be used any more (after a call to \method{close()} or
\method{quit()} you cannot reopen the connection by issuing another \method{quit()} you cannot reopen the connection by issuing another
......
...@@ -962,6 +962,7 @@ parser = OptionParser(usage, option_list=[ ...@@ -962,6 +962,7 @@ parser = OptionParser(usage, option_list=[
make_option("--file", dest="filename", make_option("--file", dest="filename",
help="Input file to read data from"), help="Input file to read data from"),
make_option("--secret", help=SUPPRESS_HELP) make_option("--secret", help=SUPPRESS_HELP)
])
\end{verbatim} \end{verbatim}
If \module{optparse} sees either \programopt{-h} or If \module{optparse} sees either \programopt{-h} or
......
...@@ -453,7 +453,7 @@ this calls the native \cfunction{fsync()} function; on Windows, the ...@@ -453,7 +453,7 @@ this calls the native \cfunction{fsync()} function; on Windows, the
MS \cfunction{_commit()} function. MS \cfunction{_commit()} function.
If you're starting with a Python file object \var{f}, first do If you're starting with a Python file object \var{f}, first do
\code{\var{f}.flush()}, and then do \code{os.fsync(\var{f}.fileno()}, \code{\var{f}.flush()}, and then do \code{os.fsync(\var{f}.fileno())},
to ensure that all internal buffers associated with \var{f} are written to ensure that all internal buffers associated with \var{f} are written
to disk. to disk.
Availability: \UNIX, and Windows starting in 2.2.3. Availability: \UNIX, and Windows starting in 2.2.3.
...@@ -884,7 +884,7 @@ the \ctype{stat} structure, namely: ...@@ -884,7 +884,7 @@ the \ctype{stat} structure, namely:
\member{st_mode} (protection bits), \member{st_mode} (protection bits),
\member{st_ino} (inode number), \member{st_ino} (inode number),
\member{st_dev} (device), \member{st_dev} (device),
\member{st_nlink} (number of hard links, \member{st_nlink} (number of hard links),
\member{st_uid} (user ID of owner), \member{st_uid} (user ID of owner),
\member{st_gid} (group ID of owner), \member{st_gid} (group ID of owner),
\member{st_size} (size of file, in bytes), \member{st_size} (size of file, in bytes),
......
...@@ -52,7 +52,7 @@ The optional \var{file} argument directs where the traceback is sent; ...@@ -52,7 +52,7 @@ The optional \var{file} argument directs where the traceback is sent;
it defaults to \code{sys.stderr}. it defaults to \code{sys.stderr}.
\end{methoddesc} \end{methoddesc}
\begin{methoddesc}{repeat}{\optional{repeat\code{=3}\optional{, \begin{methoddesc}{repeat}{\optional{repeat\code{=3} \optional{,
number\code{=1000000}}}} number\code{=1000000}}}}
Call \method{timeit()} a few times. Call \method{timeit()} a few times.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment