Issue #4704: remove use of cmp() in pybench, bump its version number to 2.1,
and make it 2.6-compatible.
diff --git a/Tools/pybench/pybench.py b/Tools/pybench/pybench.py
index 4c5ea26..ea70136 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 @@
import pickle
# Version number; version history: see README file !
-__version__ = '2.0'
+__version__ = '2.1'
### Constants
@@ -174,7 +175,7 @@
# 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 @@
roundtime = 0
# Benchmark version number as float x.yy
- version = 2.0
+ version = 2.1
# Produce verbose output ?
verbose = 0