summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2003-07-01 14:37:59 (GMT)
committerTim Peters <tim.peters@gmail.com>2003-07-01 14:37:59 (GMT)
commit93ceaea01f83e7479f974a928adc32fb46a233ec (patch)
tree2e09e26e47c840b6a6e1786d7077c9eac5c9fd5a /Doc
parent1787a0b1cc9679791a2fe775f63c322491c6767a (diff)
downloadcpython-93ceaea01f83e7479f974a928adc32fb46a233ec.zip
cpython-93ceaea01f83e7479f974a928adc32fb46a233ec.tar.gz
cpython-93ceaea01f83e7479f974a928adc32fb46a233ec.tar.bz2
showwarning() calls formatwarning(), not showwarning().
Bugfix candidate.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libwarnings.tex2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/lib/libwarnings.tex b/Doc/lib/libwarnings.tex
index e8c92e4..d829b10 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