[Python-checkins] python/dist/src/Doc/lib libwarnings.tex,1.11,1.12

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Tue, 01 Jul 2003 07:38:02 -0700


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

Modified Files:
	libwarnings.tex 
Log Message:
showwarning() calls formatwarning(), not showwarning().

Bugfix candidate.


Index: libwarnings.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libwarnings.tex,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** libwarnings.tex	6 Feb 2003 14:38:45 -0000	1.11
--- libwarnings.tex	1 Jul 2003 14:37:59 -0000	1.12
***************
*** 185,189 ****
  			     lineno\optional{, file}}
  Write a warning to a file.  The default implementation calls
! \code{showwarning(\var{message}, \var{category}, \var{filename},
  \var{lineno})} and writes the resulting string to \var{file}, which
  defaults to \code{sys.stderr}.  You may replace this function with an
--- 185,189 ----
  			     lineno\optional{, file}}
  Write a warning to a file.  The default implementation calls
! \code{formatwarning(\var{message}, \var{category}, \var{filename},
  \var{lineno})} and writes the resulting string to \var{file}, which
  defaults to \code{sys.stderr}.  You may replace this function with an