[Python-checkins] CVS: python/dist/src/Lib profile.py,1.30,1.31
Fred L. Drake
fdrake@users.sourceforge.net
Thu, 27 Sep 2001 09:28:44 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv7008
Modified Files:
profile.py
Log Message:
Change the sense of a test in how the profiler interprets exception events.
This should fix a bug in how time is allocated during exception propogation
(esp. in the presence of finally clauses).
Index: profile.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/profile.py,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -d -r1.30 -r1.31
*** profile.py 2001/08/09 21:22:15 1.30
--- profile.py 2001/09/27 16:28:42 1.31
***************
*** 242,246 ****
def trace_dispatch_exception(self, frame, t):
rt, rtt, rct, rfn, rframe, rcur = self.cur
! if (not rframe is frame) and rcur:
return self.trace_dispatch_return(rframe, t)
return 0
--- 242,246 ----
def trace_dispatch_exception(self, frame, t):
rt, rtt, rct, rfn, rframe, rcur = self.cur
! if (rframe is frame) and rcur:
return self.trace_dispatch_return(rframe, t)
return 0