Remove dots in \version{changed,added} argument and

correct argument order.
This commit is contained in:
Georg Brandl 2006-01-15 07:55:35 +00:00
parent d056005482
commit a635fbbcb0
7 changed files with 12 additions and 12 deletions

View File

@ -148,10 +148,10 @@ sequence of 2-tuples containing elements of the form
\end{funcdesc}
\versionchanged[The \function{dump_address_pair()} function has been removed;
use \function{formataddr()} instead.]{2.4}
use \function{formataddr()} instead]{2.4}
\versionchanged[The \function{decode()} function has been removed; use the
\method{Header.decode_header()} method instead.]{2.4}
\method{Header.decode_header()} method instead]{2.4}
\versionchanged[The \function{encode()} function has been removed; use the
\method{Header.encode()} method instead.]{2.4}
\method{Header.encode()} method instead]{2.4}

View File

@ -29,7 +29,7 @@ input and output file objects that the Cmd instance or subclass
instance will use for input and output. If not specified, they
will default to \var{sys.stdin} and \var{sys.stdout}.
\versionchanged[The \var{stdin} and \var{stdout} parameters were added.]{2.3}
\versionchanged[The \var{stdin} and \var{stdout} parameters were added]{2.3}
\end{classdesc}
\subsection{Cmd Objects}

View File

@ -536,7 +536,7 @@ class C:
\begin{funcdesc}{hex}{x}
Convert an integer number (of any size) to a hexadecimal string.
The result is a valid Python expression.
\versionchanged[Formerly only returned an unsigned literal.]{2.4}
\versionchanged[Formerly only returned an unsigned literal]{2.4}
\end{funcdesc}
\begin{funcdesc}{id}{object}
@ -708,7 +708,7 @@ class C:
\begin{funcdesc}{oct}{x}
Convert an integer number (of any size) to an octal string. The
result is a valid Python expression.
\versionchanged[Formerly only returned an unsigned literal.]{2.4}
\versionchanged[Formerly only returned an unsigned literal]{2.4}
\end{funcdesc}
\begin{funcdesc}{open}{filename\optional{, mode\optional{, bufsize}}}
@ -1171,7 +1171,7 @@ class C(B):
\versionchanged[Formerly, \function{zip()} required at least one argument
and \code{zip()} raised a \exception{TypeError} instead of returning
an empty list.]{2.4}
an empty list]{2.4}
\end{funcdesc}

View File

@ -810,7 +810,7 @@ directory.
Availability: Macintosh, \UNIX, Windows.
\versionchanged[On Windows NT/2k/XP and \UNIX, if \var{path} is a Unicode
object, the result will be a list of Unicode objects.]{2.3}
object, the result will be a list of Unicode objects]{2.3}
\end{funcdesc}
\begin{funcdesc}{lstat}{path}

View File

@ -97,7 +97,7 @@ Bookkeeping functions:
\versionadded{2.1}
\versionchanged[Instead of jumping to a specific state, \var{n} steps
ahead, \method{jumpahead(\var{n})} jumps to another state likely to be
separated by many steps.]{2.3}
separated by many steps]{2.3}
\end{funcdesc}
\begin{funcdesc}{getrandbits}{k}

View File

@ -68,8 +68,8 @@ depending on the results from DNS resolution and/or the host
configuration. For deterministic behavior use a numeric address in
\var{host} portion.
\versionadded[2.5]{AF_NETLINK sockets are represented as
pairs \code{\var{pid}, \var{groups}}}
\versionadded[AF_NETLINK sockets are represented as
pairs \code{\var{pid}, \var{groups}}]{2.5}
All errors raise exceptions. The normal exceptions for invalid
argument types and out-of-memory conditions can be raised; errors

View File

@ -9,7 +9,7 @@ chapter describes how the lexical analyzer breaks a file into tokens.
Python uses the 7-bit \ASCII{} character set for program text.
\versionadded[An encoding declaration can be used to indicate that
string literals and comments use an encoding different from ASCII.]{2.3}
string literals and comments use an encoding different from ASCII]{2.3}
For compatibility with older versions, Python only warns if it finds
8-bit characters; those warnings should be corrected by either declaring
an explicit encoding, or using escape sequences if those bytes are binary