mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00
"level" keyword argument in example should be "stacklevel".
This closes SF bug #517684.
This commit is contained in:
parent
57fd45ea07
commit
f981617645
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ this:
|
|||
|
||||
\begin{verbatim}
|
||||
def deprecation(message):
|
||||
warnings.warn(message, DeprecationWarning, level=2)
|
||||
warnings.warn(message, DeprecationWarning, stacklevel=2)
|
||||
\end{verbatim}
|
||||
|
||||
This makes the warning refer to \function{deprecation()}'s caller,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue