]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Whitespace normalization.
authorMarc-André Lemburg <mal@egenix.com>
Tue, 13 Jun 2006 19:20:07 +0000 (19:20 +0000)
committerMarc-André Lemburg <mal@egenix.com>
Tue, 13 Jun 2006 19:20:07 +0000 (19:20 +0000)
Tools/pybench/Calls.py
Tools/pybench/clockres.py
Tools/pybench/pybench.py

index fa18314f710b83339c6e5ac632caf58e096e0d3f..72ccd0eaae7739e3ec319511cfbe1182243baabd 100644 (file)
@@ -500,5 +500,3 @@ h(i,i,i,2,i,3)
 
         timeit.main(['-s', setup,
                      test])
-                     
-        
index a7855f221d254b6a055e6aefe950a560e56765cb..64095b3a5d8e4a76d9beb3618f985bb4726cd951 100644 (file)
@@ -20,7 +20,7 @@ def clockres(timer):
     while 1:
         now = wallclock()
         if now >= stop:
-           break
+            break
         for i in spin_loops:
             d[timer()] = 1
     values = d.keys()
@@ -33,7 +33,7 @@ def clockres(timer):
     return min_diff
 
 if __name__ == '__main__':
-    print 'Clock resolution of various timer implementations:'    
+    print 'Clock resolution of various timer implementations:'
     print 'time.clock:           %10.3fus' % (clockres(time.clock) * 1e6)
     print 'time.time:            %10.3fus' % (clockres(time.time) * 1e6)
     try:
@@ -41,4 +41,3 @@ if __name__ == '__main__':
         print 'systimes.processtime: %10.3fus' % (clockres(systimes.processtime) * 1e6)
     except ImportError:
         pass
-
index 8ff16c51fdb14aac6d34cf1322752be7c1777336..7d90ba1f39eabf848c8fd5e44e8a315d7afe6cb0 100755 (executable)
@@ -418,7 +418,7 @@ class Benchmark:
 
     def __init__(self, name, verbose=None, timer=None, warp=None,
                  calibration_runs=None):
-        
+
         if name:
             self.name = name
         else:
@@ -438,7 +438,7 @@ class Benchmark:
         if _debug:
             print 'Getting machine details...'
         self.machine_details = get_machine_details()
-        
+
         # Make .version an instance attribute to have it saved in the
         # Benchmark pickle
         self.version = self.version