Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57fd45e commit f981617Copy full SHA for f981617
1 file changed
Doc/lib/libwarnings.tex
@@ -153,7 +153,7 @@ \subsection{Available Functions \label{warning-functions}}
153
154
\begin{verbatim}
155
def deprecation(message):
156
- warnings.warn(message, DeprecationWarning, level=2)
+ warnings.warn(message, DeprecationWarning, stacklevel=2)
157
\end{verbatim}
158
159
This makes the warning refer to \function{deprecation()}'s caller,
0 commit comments