[Python-checkins] r61314 - python/trunk/Tools/pybench/pybench.py
jeffrey.yasskin
python-checkins at python.org
Sat Mar 8 21:08:22 CET 2008
Author: jeffrey.yasskin
Date: Sat Mar 8 21:08:21 2008
New Revision: 61314
Modified:
python/trunk/Tools/pybench/pybench.py
Log:
Fix pybench for pythons < 2.6, tested back to 2.3.
Modified: python/trunk/Tools/pybench/pybench.py
==============================================================================
--- python/trunk/Tools/pybench/pybench.py (original)
+++ python/trunk/Tools/pybench/pybench.py Sat Mar 8 21:08:21 2008
@@ -121,7 +121,7 @@
'platform': platform.platform(),
'processor': platform.processor(),
'executable': sys.executable,
- 'implementation': platform.python_implementation(),
+ 'implementation': getattr(platform, 'python_implementation', 'n/a'),
'python': platform.python_version(),
'compiler': platform.python_compiler(),
'buildno': buildno,
@@ -837,7 +837,7 @@
print 'PYBENCH %s' % __version__
print '-' * LINE
print '* using %s %s' % (
- platform.python_implementation(),
+ getattr(platform, 'python_implementation', 'Python'),
string.join(string.split(sys.version), ' '))
# Switch off garbage collection
More information about the Python-checkins
mailing list