Whitespace normalization.

This commit is contained in:
Tim Peters 2006-04-21 16:34:54 +00:00
parent cd84b92f08
commit f9cc594096
15 changed files with 563 additions and 577 deletions

View File

@ -775,4 +775,3 @@ class SimpleComplexArithmetic(Test):
for i in xrange(self.rounds):
pass

View File

@ -407,4 +407,3 @@ class Recursion(Test):
for i in xrange(self.rounds):
pass

View File

@ -299,7 +299,7 @@ class Application:
values = None # Dictionary of passed options (or default values)
# indexed by the options name, e.g. '-h'
files = None # List of passed filenames
optionlist = None # List of passed options
optionlist = None # List of passed options
def __init__(self,argv=None):

View File

@ -562,4 +562,3 @@ class ForLoops(Test):
l1 = range(1000)
for i in xrange(self.rounds):
pass

View File

@ -500,4 +500,3 @@ class SimpleDictManipulation(Test):
for i in xrange(self.rounds):
pass

View File

@ -677,5 +677,3 @@ class TryExcept(Test):
for i in xrange(self.rounds):
pass

View File

@ -136,4 +136,3 @@ class SecondSubmoduleImport(Test):
for i in xrange(self.rounds):
pass

View File

@ -64,5 +64,3 @@ class CreateInstances(Test):
for i in xrange(self.rounds):
pass

View File

@ -289,4 +289,3 @@ class SmallLists(Test):
for i in xrange(self.rounds):
l = []

View File

@ -943,4 +943,3 @@ class BuiltinMethodLookup(Test):
for i in xrange(self.rounds):
pass

View File

@ -334,45 +334,45 @@ class StringSlicing(Test):
for i in xrange(self.rounds):
s[50:]
s[:25]
s[50:55]
s[-1:]
s[:1]
s[2:]
s[11:-11]
s[50:]
s[:25]
s[50:55]
s[-1:]
s[:1]
s[2:]
s[11:-11]
s[50:]
s[:25]
s[50:55]
s[-1:]
s[:1]
s[2:]
s[11:-11]
s[50:]
s[:25]
s[50:55]
s[-1:]
s[:1]
s[2:]
s[11:-11]
s[50:]
s[:25]
s[50:55]
s[-1:]
s[:1]
s[2:]
s[11:-11]
s[50:]
s[:25]
s[50:55]
s[-1:]
s[:1]
s[2:]
s[11:-11]
s[50:]
s[:25]
s[50:55]
s[-1:]
s[:1]
s[2:]
s[11:-11]
s[50:]
s[:25]
s[50:55]
s[-1:]
s[:1]
s[2:]
s[11:-11]
s[50:]
s[:25]
s[50:55]
s[-1:]
s[:1]
s[2:]
s[11:-11]
s[50:]
s[:25]
s[50:55]
s[-1:]
s[:1]
s[2:]
s[11:-11]
def calibrate(self):
@ -560,5 +560,3 @@ if hasattr('', 'lower'):
for i in xrange(self.rounds):
s = data[i % len_data]

View File

@ -362,4 +362,3 @@ class SmallTuples(Test):
for i in xrange(self.rounds):
pass

View File

@ -152,22 +152,22 @@ class Test:
def calibrate(self):
""" Calibrate the test.
""" Calibrate the test.
This method should execute everything that is needed to
setup and run the test - except for the actual operations
that you intend to measure. pybench uses this method to
measure the test implementation overhead.
This method should execute everything that is needed to
setup and run the test - except for the actual operations
that you intend to measure. pybench uses this method to
measure the test implementation overhead.
"""
return
def test(self):
""" Run the test.
""" Run the test.
The test needs to run self.rounds executing
self.operations number of operations each.
The test needs to run self.rounds executing
self.operations number of operations each.
"""
# do some tests
@ -210,7 +210,7 @@ class Benchmark:
roundtime = 0 # Average round time
version = None # Benchmark version number (see __init__)
# as float x.yy
starttime = None # Benchmark start time
starttime = None # Benchmark start time
def __init__(self):