mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
showwarning() calls formatwarning(), not showwarning().
Bugfix candidate.
This commit is contained in:
parent
1787a0b1cc
commit
93ceaea01f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue