From: Fred Drake Date: Tue, 12 Mar 2002 19:51:59 +0000 (+0000) Subject: "level" keyword argument in example should be "stacklevel". X-Git-Tag: v2.1.3~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29752e24775fb918853384905c3fda11519ffd40;p=thirdparty%2FPython%2Fcpython.git "level" keyword argument in example should be "stacklevel". This closes SF bug #517684. --- diff --git a/Doc/lib/libwarnings.tex b/Doc/lib/libwarnings.tex index 21d0bcfdcf24..8882fdb97d2a 100644 --- a/Doc/lib/libwarnings.tex +++ b/Doc/lib/libwarnings.tex @@ -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,