]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
"level" keyword argument in example should be "stacklevel".
authorFred Drake <fdrake@acm.org>
Tue, 12 Mar 2002 19:51:59 +0000 (19:51 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 12 Mar 2002 19:51:59 +0000 (19:51 +0000)
This closes SF bug #517684.

Doc/lib/libwarnings.tex

index 21d0bcfdcf24d6032e22a0c2eb846c4e4779f7ab..8882fdb97d2ac366a771ac21b98be53df37aab02 100644 (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,