Kaydet (Commit) 8f81ef1e authored tarafından Fred Drake's avatar Fred Drake

Fix LaTeX bug found by examining the docstrings added to commands.py.

üst b4aeaebf
...@@ -14,7 +14,7 @@ The \code{commands} module defines the following functions: ...@@ -14,7 +14,7 @@ The \code{commands} module defines the following functions:
\begin{funcdesc}{getstatusoutput}{cmd} \begin{funcdesc}{getstatusoutput}{cmd}
Execute the string \var{cmd} in a shell with \code{os.popen()} and return Execute the string \var{cmd} in a shell with \code{os.popen()} and return
a 2-tuple (status, output). \var{cmd} is actually run as a 2-tuple (status, output). \var{cmd} is actually run as
\samp{cmd ; 2$>$\$1}, so that the returned output will contain output \samp{\{\ cmd \} ; 2$>$\$1}, so that the returned output will contain output
or error messages. A trailing newline is stripped from the output. or error messages. A trailing newline is stripped from the output.
The exit status for the command can be interpreted according to the The exit status for the command can be interpreted according to the
rules for the \C{} function \code{wait()}. rules for the \C{} function \code{wait()}.
......
...@@ -14,7 +14,7 @@ The \code{commands} module defines the following functions: ...@@ -14,7 +14,7 @@ The \code{commands} module defines the following functions:
\begin{funcdesc}{getstatusoutput}{cmd} \begin{funcdesc}{getstatusoutput}{cmd}
Execute the string \var{cmd} in a shell with \code{os.popen()} and return Execute the string \var{cmd} in a shell with \code{os.popen()} and return
a 2-tuple (status, output). \var{cmd} is actually run as a 2-tuple (status, output). \var{cmd} is actually run as
\samp{cmd ; 2$>$\$1}, so that the returned output will contain output \samp{\{\ cmd \} ; 2$>$\$1}, so that the returned output will contain output
or error messages. A trailing newline is stripped from the output. or error messages. A trailing newline is stripped from the output.
The exit status for the command can be interpreted according to the The exit status for the command can be interpreted according to the
rules for the \C{} function \code{wait()}. rules for the \C{} function \code{wait()}.
......
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