From: Neal Norwitz Date: Tue, 1 Jul 2003 21:48:57 +0000 (+0000) Subject: Backport tim_one's checkin: X-Git-Tag: 2.2~45 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2e8e6a91f0b6adf6b50d51075decc9fe646ec2c8;p=thirdparty%2FPython%2Fcpython.git Backport tim_one's checkin: showwarning() calls formatwarning(), not showwarning(). --- diff --git a/Doc/lib/libwarnings.tex b/Doc/lib/libwarnings.tex index b7c7d63551b6..f652ac04313d 100644 --- a/Doc/lib/libwarnings.tex +++ b/Doc/lib/libwarnings.tex @@ -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