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

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


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}