renamed fyle to f

This commit is contained in:
jomo
2014-07-20 16:46:20 +02:00
parent 878caad751
commit fbf7722831

View File

@@ -131,8 +131,8 @@ def save_json_file(filename, obj):
filename is the path + name of the file.
"""
try:
with open(filename) as fyle:
fyle.write(json_dumps(obj))
with open(filename) as f:
f.write(json_dumps(obj))
except Exception, e:
error("Failed to write to %s: %s" % (filename, e))