From 2647fc4ca7d2e0ad7284bd7d6765046773a8c4ad Mon Sep 17 00:00:00 2001 From: fdrake Date: Thu, 27 Sep 2001 16:28:42 +0000 Subject: [PATCH] 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). git-svn-id: http://svn.python.org/projects/python/trunk@23388 6015fed2-1504-0410-9fe1-9d1591cc4771 --- Lib/profile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/profile.py b/Lib/profile.py index b92bd91882..b58af1ea80 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 -- 2.11.4.GIT