diff options
author | Fred Drake <fdrake@acm.org> | 2001-10-17 01:49:50 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-10-17 01:49:50 (GMT) |
commit | d10ed8b17936eebd7f769b09836d7a61f07f8bb9 (patch) | |
tree | 79cc5ad90b9bf73fe0f7bfaa914ba7fe8135b6ed /Lib/profile.py | |
parent | 89e000edb7f6aecb4108a896cca0fa61f0480b68 (diff) | |
download | cpython-d10ed8b17936eebd7f769b09836d7a61f07f8bb9.zip cpython-d10ed8b17936eebd7f769b09836d7a61f07f8bb9.tar.gz cpython-d10ed8b17936eebd7f769b09836d7a61f07f8bb9.tar.bz2 |
Minor code cleanups based on comments from Neal Norwitz.
Diffstat (limited to 'Lib/profile.py')
-rwxr-xr-x | Lib/profile.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/profile.py b/Lib/profile.py index 30f4dd4..ed77521 100755 --- a/Lib/profile.py +++ b/Lib/profile.py @@ -353,8 +353,7 @@ class Profile: else: pframe = None frame = self.fake_frame(code, pframe) - a = self.dispatch['call'](self, frame, 0) - return + self.dispatch['call'](self, frame, 0) # collect stats from pending stack, including getting final # timings for self.cmd frame. @@ -365,7 +364,7 @@ class Profile: while self.cur[-1]: # We *can* cause assertion errors here if # dispatch_trace_return checks for a frame match! - a = self.dispatch['return'](self, self.cur[-2], t) + self.dispatch['return'](self, self.cur[-2], t) t = 0 self.t = get_time() - t |