summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2002-03-12 19:51:16 (GMT)
committerFred Drake <fdrake@acm.org>2002-03-12 19:51:16 (GMT)
commit066cecdb58f5fcb90442cde3c06d5385fdd8cbd5 (patch)
treef9b9002c7797e1b1a17cf4e15e11310653241704 /Doc
parent6ae46a7cbf4f0feb63e6cece78f6a935cd18ed3b (diff)
downloadcpython-066cecdb58f5fcb90442cde3c06d5385fdd8cbd5.zip
cpython-066cecdb58f5fcb90442cde3c06d5385fdd8cbd5.tar.gz
cpython-066cecdb58f5fcb90442cde3c06d5385fdd8cbd5.tar.bz2
"level" keyword argument in example should be "stacklevel".
This closes SF bug #517684.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libwarnings.tex2
1 files changed, 1 insertions, 1 deletions
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,