Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 93ceaea

Browse files
committed
showwarning() calls formatwarning(), not showwarning().
Bugfix candidate.
1 parent 1787a0b commit 93ceaea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/lib/libwarnings.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ \subsection{Available Functions \label{warning-functions}}
184184
\begin{funcdesc}{showwarning}{message, category, filename,
185185
lineno\optional{, file}}
186186
Write a warning to a file. The default implementation calls
187-
\code{showwarning(\var{message}, \var{category}, \var{filename},
187+
\code{formatwarning(\var{message}, \var{category}, \var{filename},
188188
\var{lineno})} and writes the resulting string to \var{file}, which
189189
defaults to \code{sys.stderr}. You may replace this function with an
190190
alternative implementation by assigning to

0 commit comments

Comments
 (0)