diff options
author | Tim Peters <tim.peters@gmail.com> | 2006-04-21 16:34:54 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2006-04-21 16:34:54 (GMT) |
commit | f9cc5940960568ef8824f234369359060a8cf8bf (patch) | |
tree | 5639a6a1bf3722831eb8096516ef5875bdf24367 /Tools/pybench/Strings.py | |
parent | cd84b92f0820f5aeca1270c8cf36da68465cb2ca (diff) | |
download | cpython-f9cc5940960568ef8824f234369359060a8cf8bf.zip cpython-f9cc5940960568ef8824f234369359060a8cf8bf.tar.gz cpython-f9cc5940960568ef8824f234369359060a8cf8bf.tar.bz2 |
Whitespace normalization.
Diffstat (limited to 'Tools/pybench/Strings.py')
-rw-r--r-- | Tools/pybench/Strings.py | 88 |
1 files changed, 43 insertions, 45 deletions
diff --git a/Tools/pybench/Strings.py b/Tools/pybench/Strings.py index 5ab458e..b01843a 100644 --- a/Tools/pybench/Strings.py +++ b/Tools/pybench/Strings.py @@ -81,7 +81,7 @@ class ConcatStrings(Test): for i in xrange(self.rounds): pass - + class CompareStrings(Test): @@ -163,7 +163,7 @@ class CompareStrings(Test): for i in xrange(self.rounds): pass - + class CompareInternedStrings(Test): @@ -245,7 +245,7 @@ class CompareInternedStrings(Test): for i in xrange(self.rounds): pass - + class CreateStringsWithConcat(Test): @@ -320,7 +320,7 @@ class CreateStringsWithConcat(Test): for i in xrange(self.rounds): pass - + class StringSlicing(Test): @@ -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] - - |