Update of /cvsroot/python/python/dist/src/Doc/lib In directory usw-pr-cvs1:/tmp/cvs-serv30546/lib Modified Files: Tag: release21-maint libwarnings.tex Log Message: "level" keyword argument in example should be "stacklevel". This closes SF bug #517684. Index: libwarnings.tex =================================================================== RCS file: /cvsroot/python/python/dist/src/Doc/lib/libwarnings.tex,v retrieving revision 1.5 retrieving revision 1.5.4.1 diff -C2 -d -r1.5 -r1.5.4.1 *** libwarnings.tex 28 Feb 2001 23:34:21 -0000 1.5 --- libwarnings.tex 12 Mar 2002 19:51:59 -0000 1.5.4.1 *************** *** 154,158 **** \begin{verbatim} def deprecation(message): ! warnings.warn(message, DeprecationWarning, level=2) \end{verbatim} --- 154,158 ---- \begin{verbatim} def deprecation(message): ! warnings.warn(message, DeprecationWarning, stacklevel=2) \end{verbatim}
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4