]> granicus.if.org Git - python/commitdiff
showwarning() calls formatwarning(), not showwarning().
authorTim Peters <tim.peters@gmail.com>
Tue, 1 Jul 2003 14:37:59 +0000 (14:37 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 1 Jul 2003 14:37:59 +0000 (14:37 +0000)
Bugfix candidate.

Doc/lib/libwarnings.tex

index e8c92e4f3fa30c215a8ccb9c4a8386b8c34f156d..d829b10ea606d8761060458410925fe7dcd63528 100644 (file)
@@ -184,7 +184,7 @@ in which case \var{category} will be ignored.
 \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