summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
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,