[Python-checkins] python/dist/src/Lib cookielib.py,1.2,1.3
akuchling at users.sourceforge.net
akuchling at users.sourceforge.net
Sat Jul 10 20:32:14 CEST 2004
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7676
Modified Files:
cookielib.py
Log Message:
[Patch #969907] Add traceback to warning output
Index: cookielib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/cookielib.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** cookielib.py 1 Jun 2004 04:36:51 -0000 1.2
--- cookielib.py 10 Jul 2004 18:32:12 -0000 1.3
***************
*** 50,57 ****
raise
# swallowed an exception
! import warnings
! warnings.warn("cookielib bug!", stacklevel=2)
! import traceback
! traceback.print_exc()
--- 50,58 ----
raise
# swallowed an exception
! import warnings, traceback, StringIO
! f = StringIO.StringIO()
! traceback.print_exc(None, f)
! msg = f.getvalue()
! warnings.warn("cookielib bug!\n%s" % msg, stacklevel=2)
More information about the Python-checkins
mailing list