diff options
author | Tim Peters <tim.peters@gmail.com> | 2003-07-01 14:37:59 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2003-07-01 14:37:59 (GMT) |
commit | 93ceaea01f83e7479f974a928adc32fb46a233ec (patch) | |
tree | 2e09e26e47c840b6a6e1786d7077c9eac5c9fd5a | |
parent | 1787a0b1cc9679791a2fe775f63c322491c6767a (diff) | |
download | cpython-93ceaea01f83e7479f974a928adc32fb46a233ec.zip cpython-93ceaea01f83e7479f974a928adc32fb46a233ec.tar.gz cpython-93ceaea01f83e7479f974a928adc32fb46a233ec.tar.bz2 |
showwarning() calls formatwarning(), not showwarning().
Bugfix candidate.
-rw-r--r-- | Doc/lib/libwarnings.tex | 2 |
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 |