Well that was dumb. platform.python_implementation returns a function, not a
string.
This commit is contained in:
parent
019e9d730a
commit
3accbb0729
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue