summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libwarnings.tex
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2002-03-12 19:49:31 (GMT)
committerFred Drake <fdrake@acm.org>2002-03-12 19:49:31 (GMT)
commitf98161764530723e40448262d538fff7d9a99dfc (patch)
tree89a2baf04aa51481d90ceab8344324fc8ce27d62 /Doc/lib/libwarnings.tex
parent57fd45ea07e501b1d1dfac5901b392727478cc49 (diff)
downloadcpython-f98161764530723e40448262d538fff7d9a99dfc.zip
cpython-f98161764530723e40448262d538fff7d9a99dfc.tar.gz
cpython-f98161764530723e40448262d538fff7d9a99dfc.tar.bz2
"level" keyword argument in example should be "stacklevel".
This closes SF bug #517684.
Diffstat (limited to 'Doc/lib/libwarnings.tex')
-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,