]> granicus.if.org Git - python/commitdiff
Fix description of filterwarnings() parameters (error noted by Richard Jones at
authorAndrew M. Kuchling <amk@amk.ca>
Thu, 6 Feb 2003 14:38:45 +0000 (14:38 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Thu, 6 Feb 2003 14:38:45 +0000 (14:38 +0000)
http://mechanicalcat.net/cgi-bin/log/python/turning_warnings_off.html)

Doc/lib/libwarnings.tex

index 48efd68aaac09cb31861743d8d3689137a88a9c6..e8c92e4f3fa30c215a8ccb9c4a8386b8c34f156d 100644 (file)
@@ -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