[Python-checkins] CVS: python/dist/src/Doc/lib libwarnings.tex,1.6,1.6.16.1

Fred L. Drake fdrake@users.sourceforge.net
Tue, 12 Mar 2002 11:51:18 -0800


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv30183/lib

Modified Files:
      Tag: release22-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.6
retrieving revision 1.6.16.1
diff -C2 -d -r1.6 -r1.6.16.1
*** libwarnings.tex	14 Aug 2001 21:51:50 -0000	1.6
--- libwarnings.tex	12 Mar 2002 19:51:16 -0000	1.6.16.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}