[pywin32-checkins] pywin32/com/win32com/server dispatcher.py, 1.8, 1.9
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-11-27 04:06:00
|
Update of /cvsroot/pywin32/pywin32/com/win32com/server In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv31996/com/win32com/server Modified Files: dispatcher.py Log Message: fix a couple of over-anxious raise modernizations! Index: dispatcher.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/server/dispatcher.py,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** dispatcher.py 27 Nov 2008 03:53:25 -0000 1.8 --- dispatcher.py 27 Nov 2008 04:05:54 -0000 1.9 *************** *** 127,131 **** traceback.print_exc() # But still raise it for the framework. ! reraise() def _trace_(self, *args): --- 127,131 ---- traceback.print_exc() # But still raise it for the framework. ! raise def _trace_(self, *args): *************** *** 262,279 **** # But still raise it. del tb ! reraise() ! ! def reraise(): ! """Handy function for re-raising errors. ! ! Note: storing a traceback in a local variable can introduce reference ! loops if you aren't careful. Specifically, that local variable should ! not be within an execution context contained with the traceback. ! ! By using a utility function, we ensure that our local variable holding ! the traceback is not referenced by the traceback itself. ! """ ! t, v, tb = exc_info() ! raise t(v).with_traceback(tb) try: --- 262,266 ---- # But still raise it. del tb ! raise try: |