Commit 93ceaea0 authored by Tim Peters's avatar Tim Peters

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

Bugfix candidate.
parent 1787a0b1
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment