diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2009-02-07 17:13:31 +0000 |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2009-02-07 17:13:31 +0000 |
commit | 8a68122e9cb1ecd0ade79052ac66ad35c6333270 (patch) | |
tree | 1c5bfc6cfd2d2b6208fabcb72453cc34968116a0 /Tools/pybench/pybench.py | |
parent | 7bf8d4ed4da5555dcf72652926bfb29276f7a6bc (diff) | |
download | cpython-git-8a68122e9cb1ecd0ade79052ac66ad35c6333270.tar.gz |
Issue #4704: remove use of cmp() in pybench, bump its version number to 2.1,
and make it 2.6-compatible.
Diffstat (limited to 'Tools/pybench/pybench.py')
-rwxr-xr-x | Tools/pybench/pybench.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Tools/pybench/pybench.py b/Tools/pybench/pybench.py index 4c5ea26a95..ea701363c9 100755 --- a/Tools/pybench/pybench.py +++ b/Tools/pybench/pybench.py @@ -3,14 +3,15 @@ """ A Python Benchmark Suite """ -# -# Note: Please keep this module compatible to Python 1.5.2. +# Note: Please keep this module compatible to Python 2.6. # # Tests may include features in later Python versions, but these # should then be embedded in try-except clauses in the configuration # module Setup.py. # +from __future__ import print_function + # pybench Copyright __copyright__ = """\ Copyright (c), 1997-2006, Marc-Andre Lemburg (mal@lemburg.com) @@ -44,7 +45,7 @@ except ImportError: import pickle # Version number; version history: see README file ! -__version__ = '2.0' +__version__ = '2.1' ### Constants @@ -174,7 +175,7 @@ class Test: # Version number of the test as float (x.yy); this is important # for comparisons of benchmark runs - tests with unequal version # number will not get compared. - version = 2.0 + version = 2.1 # The number of abstract operations done in each round of the # test. An operation is the basic unit of what you want to @@ -403,7 +404,7 @@ class Benchmark: roundtime = 0 # Benchmark version number as float x.yy - version = 2.0 + version = 2.1 # Produce verbose output ? verbose = 0 |