]> granicus.if.org Git - python/commitdiff
Comment out 't = t[0] + t[1]' in profiler_simulation() -- this
authorGuido van Rossum <guido@python.org>
Mon, 21 Sep 1998 14:52:22 +0000 (14:52 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 21 Sep 1998 14:52:22 +0000 (14:52 +0000)
function is only used when running the calibration code, and it turns
out that recent changes in the timing code caused this statement to
raise an exception.

Lib/profile.py

index df36c176a54fb6eed490fa76bffbc105e21604d9..89fd88780d371fc0cffbb7e2dea22f15e53defd3 100755 (executable)
@@ -517,7 +517,7 @@ class Profile:
        # simulate an event processing activity (from user's perspective)
        def profiler_simulation(self, x, y, z):  
                t = self.timer()
-               t = t[0] + t[1]
+               ## t = t[0] + t[1]
                self.ut = t