renamed fyle to f
This commit is contained in:
@@ -131,8 +131,8 @@ def save_json_file(filename, obj):
|
|||||||
filename is the path + name of the file.
|
filename is the path + name of the file.
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
with open(filename) as fyle:
|
with open(filename) as f:
|
||||||
fyle.write(json_dumps(obj))
|
f.write(json_dumps(obj))
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
error("Failed to write to %s: %s" % (filename, e))
|
error("Failed to write to %s: %s" % (filename, e))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user