Fix description of filterwarnings() parameters (error noted by Richard Jones at

http://mechanicalcat.net/cgi-bin/log/python/turning_warnings_off.html)
This commit is contained in:
Andrew M. Kuchling 2003-02-06 14:38:45 +00:00
parent 292f56cd26
commit ba37524b7c
1 changed files with 5 additions and 4 deletions

View File

@ -116,14 +116,15 @@ form (\var{action}, \var{message}, \var{category}, \var{module},
\end{tableii} \end{tableii}
\item \var{message} is a compiled regular expression that the warning \item \var{message} is a string containing a regular expression that
message must match (the match is case-insensitive) the warning message must match (the match is compiled to always be
case-insensitive)
\item \var{category} is a class (a subclass of \exception{Warning}) of \item \var{category} is a class (a subclass of \exception{Warning}) of
which the warning category must be a subclass in order to match which the warning category must be a subclass in order to match
\item \var{module} is a compiled regular expression that the module \item \var{module} is a string containing a regular expression that the module
name must match name must match (the match is compiled to be case-sensitive)
\item \var{lineno} is an integer that the line number where the \item \var{lineno} is an integer that the line number where the
warning occurred must match, or \code{0} to match all line warning occurred must match, or \code{0} to match all line