devtools/stresstester.py
changeset 10614 57dfde80df11
parent 10589 7c23b7de2b8d
--- a/devtools/stresstester.py	Thu Sep 17 09:52:06 2015 +0200
+++ b/devtools/stresstester.py	Tue Sep 15 15:33:47 2015 +0200
@@ -156,7 +156,7 @@
         elif opt in ('-P', '--profile'):
             prof_file = val
         elif opt in ('-o', '--report-output'):
-            report_output = file(val, 'w')
+            report_output = open(val, 'w')
     if len(args) != 2:
         usage(1)
     queries =  [query for query in lines(args[1]) if not query.startswith('#')]