[Python-checkins] CVS: python/dist/src/Lib profile.py,1.42,1.43
Fred L. Drake
fdrake@users.sourceforge.net
Tue, 16 Oct 2001 18:49:52 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv27618
Modified Files:
profile.py
Log Message:
Minor code cleanups based on comments from Neal Norwitz.
Index: profile.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/profile.py,v
retrieving revision 1.42
retrieving revision 1.43
diff -C2 -d -r1.42 -r1.43
*** profile.py 2001/10/09 21:01:31 1.42
--- profile.py 2001/10/17 01:49:50 1.43
***************
*** 354,359 ****
pframe = None
frame = self.fake_frame(code, pframe)
! a = self.dispatch['call'](self, frame, 0)
! return
# collect stats from pending stack, including getting final
--- 354,358 ----
pframe = None
frame = self.fake_frame(code, pframe)
! self.dispatch['call'](self, frame, 0)
# collect stats from pending stack, including getting final
***************
*** 366,370 ****
# We *can* cause assertion errors here if
# dispatch_trace_return checks for a frame match!
! a = self.dispatch['return'](self, self.cur[-2], t)
t = 0
self.t = get_time() - t
--- 365,369 ----
# We *can* cause assertion errors here if
# dispatch_trace_return checks for a frame match!
! self.dispatch['return'](self, self.cur[-2], t)
t = 0
self.t = get_time() - t