diff py/params.py @ 231:e39ed85d87a5

fix a few python3 issues
author Matt Johnston <matt@ucc.asn.au>
date Sat, 11 Apr 2015 00:16:05 +0800
parents 185621f47040
children 19569cb5ed46
line wrap: on
line diff
--- a/py/params.py	Fri Apr 10 23:59:16 2015 +0800
+++ b/py/params.py	Sat Apr 11 00:16:05 2015 +0800
@@ -36,7 +36,7 @@
     def load(self, f = None):
         if not f:
             try:
-                f = file(config.PARAMS_FILE, 'r')
+                f = open(config.PARAMS_FILE, 'r')
             except IOError as e:
                 W("Missing parameter file, using defaults. %s", e)
                 return