| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0f61c43 commit 12ef0fa
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -121,7 +121,8 @@ def get_machine_details(): | |||
| 121 | 121 | 'platform': platform.platform(), | |
| 122 | 122 | 'processor': platform.processor(), | |
| 123 | 123 | 'executable': sys.executable, | |
| 124 | - 'implementation': getattr(platform, 'python_implementation', 'n/a'), | ||
| 124 | + 'implementation': getattr(platform, 'python_implementation', | ||
| 125 | + lambda:'n/a')(), | ||
| 125 | 126 | 'python': platform.python_version(), | |
| 126 | 127 | 'compiler': platform.python_compiler(), | |
| 127 | 128 | 'buildno': buildno, | |
@@ -837,7 +838,7 @@ def main(self): | |||
| 837 | 838 | print 'PYBENCH %s' % __version__ | |
| 838 | 839 | print '-' * LINE | |
| 839 | 840 | print '* using %s %s' % ( | |
| 840 | - getattr(platform, 'python_implementation', 'Python'), | ||
| 841 | + getattr(platform, 'python_implementation', lambda:'Python')(), | ||
| 841 | 842 | string.join(string.split(sys.version), ' ')) | |
| 842 | 843 | ||
| 843 | 844 | # Switch off garbage collection | |
| Back | FazBrowse Home | New Git URL |
0 commit comments