summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-09-27 16:28:42 (GMT)
committerFred Drake <fdrake@acm.org>2001-09-27 16:28:42 (GMT)
commit5a28bfbbc7707b6820b3ecf31589d04ee9120da5 (patch)
treefdcee8cf16bac4a49f6ec81d2bf10417fd1252cc /Lib
parent30bff63958c4aaa867aef686c4d1520c99d4f13d (diff)
downloadcpython-5a28bfbbc7707b6820b3ecf31589d04ee9120da5.zip
cpython-5a28bfbbc7707b6820b3ecf31589d04ee9120da5.tar.gz
cpython-5a28bfbbc7707b6820b3ecf31589d04ee9120da5.tar.bz2
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).
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/profile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/profile.py b/Lib/profile.py
index b92bd91..b58af1e 100755
--- a/Lib/profile.py
+++ b/Lib/profile.py
@@ -241,7 +241,7 @@ class Profile:
def trace_dispatch_exception(self, frame, t):
rt, rtt, rct, rfn, rframe, rcur = self.cur
- if (not rframe is frame) and rcur:
+ if (rframe is frame) and rcur:
return self.trace_dispatch_return(rframe, t)
return 0