From f98161764530723e40448262d538fff7d9a99dfc Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Tue, 12 Mar 2002 19:49:31 +0000 Subject: "level" keyword argument in example should be "stacklevel". This closes SF bug #517684. --- Doc/lib/libwarnings.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/lib/libwarnings.tex b/Doc/lib/libwarnings.tex index e38da36..b7c7d63 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, -- cgit v0.12