showwarning() calls formatwarning(), not showwarning().

Bugfix candidate.
This commit is contained in:
Tim Peters 2003-07-01 14:37:59 +00:00
parent 1787a0b1cc
commit 93ceaea01f

View 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