summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorMarc-André Lemburg <mal@egenix.com>2006-06-13 19:20:07 (GMT)
committerMarc-André Lemburg <mal@egenix.com>2006-06-13 19:20:07 (GMT)
commit3b3f1184bc55691fdae8d3aef171b29eb0a7cfc8 (patch)
treef5cb392ae996b2fe30f520525c9b1a4f9d0f588f /Tools
parent93e3ecb1f4b5a0ee85756187e3011b2b214df443 (diff)
downloadcpython-3b3f1184bc55691fdae8d3aef171b29eb0a7cfc8.zip
cpython-3b3f1184bc55691fdae8d3aef171b29eb0a7cfc8.tar.gz
cpython-3b3f1184bc55691fdae8d3aef171b29eb0a7cfc8.tar.bz2
Whitespace normalization.
Diffstat (limited to 'Tools')
-rw-r--r--Tools/pybench/Calls.py2
-rw-r--r--Tools/pybench/clockres.py5
-rwxr-xr-xTools/pybench/pybench.py4
3 files changed, 4 insertions, 7 deletions
diff --git a/Tools/pybench/Calls.py b/Tools/pybench/Calls.py
index fa18314..72ccd0e 100644
--- a/Tools/pybench/Calls.py
+++ b/Tools/pybench/Calls.py
@@ -500,5 +500,3 @@ h(i,i,i,2,i,3)
timeit.main(['-s', setup,
test])
-
-
diff --git a/Tools/pybench/clockres.py b/Tools/pybench/clockres.py
index a7855f2..64095b3 100644
--- a/Tools/pybench/clockres.py
+++ b/Tools/pybench/clockres.py
@@ -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
-
diff --git a/Tools/pybench/pybench.py b/Tools/pybench/pybench.py
index 8ff16c5..7d90ba1 100755
--- a/Tools/pybench/pybench.py
+++ b/Tools/pybench/pybench.py
@@ -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