"level" keyword argument in example should be "stacklevel".

This closes SF bug #517684.
This commit is contained in:
Fred Drake 2002-03-12 19:49:31 +00:00
parent 57fd45ea07
commit f981617645
1 changed files with 1 additions and 1 deletions

View File

@ -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,