From: Tim Peters Date: Tue, 1 Jul 2003 14:37:59 +0000 (+0000) Subject: showwarning() calls formatwarning(), not showwarning(). X-Git-Tag: v2.3c1~210 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=93ceaea01f83e7479f974a928adc32fb46a233ec;p=python showwarning() calls formatwarning(), not showwarning(). Bugfix candidate. --- diff --git a/Doc/lib/libwarnings.tex b/Doc/lib/libwarnings.tex index e8c92e4f3f..d829b10ea6 100644 --- a/Doc/lib/libwarnings.tex +++ b/Doc/lib/libwarnings.tex @@ -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