]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Backport tim_one's checkin:
authorNeal Norwitz <nnorwitz@gmail.com>
Tue, 1 Jul 2003 21:48:57 +0000 (21:48 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Tue, 1 Jul 2003 21:48:57 +0000 (21:48 +0000)
showwarning() calls formatwarning(), not showwarning().

Doc/lib/libwarnings.tex

index b7c7d63551b6df419a43ebb2c62a4f17702c5c13..f652ac04313d371333e0eccac576e03aee87cfe6 100644 (file)
@@ -174,7 +174,7 @@ stripped; if no registry is passed, the warning is never suppressed.
 \begin{funcdesc}{showwarning}{message, category, filename,
                             lineno\optional{, file}}
 Write a warning to a file.  The default implementation calls
-\code{showwarning(\var{message}, \var{category}, \var{filename},
+\code{formatwarning(\var{message}, \var{category}, \var{filename},
 \var{lineno})} and writes the resulting string to \var{file}, which
 defaults to \code{sys.stderr}.  You may replace this function with an
 alternative implementation by assigning to