]> granicus.if.org Git - python/commitdiff
Minor code cleanups based on comments from Neal Norwitz.
authorFred Drake <fdrake@acm.org>
Wed, 17 Oct 2001 01:49:50 +0000 (01:49 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 17 Oct 2001 01:49:50 +0000 (01:49 +0000)
Lib/profile.py

index 30f4dd4f0db2b250c09f3e3fa5f2bba6cc8cd9b7..ed77521607bbad223627885fec145262372b8986 100755 (executable)
@@ -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