CVS: anygui/lib/anygui Utils.py,1.19,1.20

Robin Becker <[email protected]> Sun, 17 Nov 2002 03:36:48 -0800
Newsgroups gmane.comp.python.anygui.cvs
Message-ID <[email protected]>
Update of /cvsroot/anygui/anygui/lib/anygui
In directory usw-pr-cvs1:/tmp/cvs-serv28836

Modified Files:
	Utils.py 
Log Message:
Add a possible label to logTraceback

Index: Utils.py
===================================================================
RCS file: /cvsroot/anygui/anygui/lib/anygui/Utils.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -r1.19 -r1.20
*** Utils.py	4 Nov 2002 19:46:40 -0000	1.19
--- Utils.py	17 Nov 2002 11:36:46 -0000	1.20
***************
*** 192,196 ****
      _logger.flush()
  
! def logTraceback(n):
      import traceback
      traceback.print_exc(n,_logger._f)
--- 192,197 ----
      _logger.flush()
  
! def logTraceback(n,label=None):
!     if label is not None: _logger._f.write(label+': ')
      import traceback
      traceback.print_exc(n,_logger._f)



-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html