summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2003-02-06 14:38:45 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2003-02-06 14:38:45 (GMT)
commitba37524b7c346d6a475848fb1653ce2593dba9a2 (patch)
treee37e2f8c592d60ee97ef42561f4bc8f10c48063b /Doc
parent292f56cd26233f2e1d41dacdd0834b7b221e72f3 (diff)
downloadcpython-ba37524b7c346d6a475848fb1653ce2593dba9a2.zip
cpython-ba37524b7c346d6a475848fb1653ce2593dba9a2.tar.gz
cpython-ba37524b7c346d6a475848fb1653ce2593dba9a2.tar.bz2
Fix description of filterwarnings() parameters (error noted by Richard Jones at
http://mechanicalcat.net/cgi-bin/log/python/turning_warnings_off.html)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libwarnings.tex9
1 files changed, 5 insertions, 4 deletions
diff --git a/Doc/lib/libwarnings.tex b/Doc/lib/libwarnings.tex
index 48efd68..e8c92e4 100644
--- a/Doc/lib/libwarnings.tex
+++ b/Doc/lib/libwarnings.tex
@@ -116,14 +116,15 @@ form (\var{action}, \var{message}, \var{category}, \var{module},
\end{tableii}
-\item \var{message} is a compiled regular expression that the warning
-message must match (the match is case-insensitive)
+\item \var{message} is a string containing a regular expression that
+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
which the warning category must be a subclass in order to match
-\item \var{module} is a compiled regular expression that the module
- name must match
+\item \var{module} is a string containing a regular expression that the module
+ name must match (the match is compiled to be case-sensitive)
\item \var{lineno} is an integer that the line number where the
warning occurred must match, or \code{0} to match all line