Well that was dumb. platform.python_implementation returns a function, not a

string.
This commit is contained in:
Jeffrey Yasskin 2008-03-08 21:35:15 +00:00
parent 019e9d730a
commit 3accbb0729
1 changed files with 3 additions and 2 deletions

View File

@ -121,7 +121,8 @@ def get_machine_details():
'platform': platform.platform(),
'processor': platform.processor(),
'executable': sys.executable,
'implementation': getattr(platform, 'python_implementation', 'n/a'),
'implementation': getattr(platform, 'python_implementation',
lambda:'n/a')(),
'python': platform.python_version(),
'compiler': platform.python_compiler(),
'buildno': buildno,
@ -837,7 +838,7 @@ python pybench.py -s p25.pybench -c p21.pybench
print 'PYBENCH %s' % __version__
print '-' * LINE
print '* using %s %s' % (
getattr(platform, 'python_implementation', 'Python'),
getattr(platform, 'python_implementation', lambda:'Python')(),
string.join(string.split(sys.version), ' '))
# Switch off garbage collection