[Python-checkins] CVS: python/dist/src/Lib profile.py,1.30,1.31

Fred L. Drake fdrake@users.sourceforge.net
2001年9月27日 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

AltStyle によって変換されたページ (->オリジナル) /