[pypy-svn] r80189 - pypy/benchmarks

fijal at codespeak.net fijal at codespeak.net
Tue Jan 11 11:02:04 CET 2011


Author: fijal
Date: Tue Jan 11 11:02:02 2011
New Revision: 80189

Modified:
   pypy/benchmarks/savecpython.py
Log:
fixes

Modified: pypy/benchmarks/savecpython.py
==============================================================================
--- pypy/benchmarks/savecpython.py	(original)
+++ pypy/benchmarks/savecpython.py	Tue Jan 11 11:02:02 2011
@@ -1,3 +1,4 @@
+#!/usr/bin/env python
 # -*- coding: utf-8 -*-
 import sys
 import json
@@ -65,5 +66,5 @@
     return 0
 
 if __name__ == '__main__':
-    results = json.load(sys.argv[1])['results']
+    results = json.load(open(sys.argv[1]))['results']
     save('cpython', 100, results, None, 'cpython', 'tannit', testing=False)



More information about the Pypy-commit mailing list