Skip to content

Commit

Permalink
Variable file is not defined -> Rename to f
Browse files Browse the repository at this point in the history
  • Loading branch information
HelgeS committed Oct 8, 2017
1 parent 1682975 commit dd4ae7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.py
Expand Up @@ -80,7 +80,7 @@ def open_atomic(filepath, *args, **kwargs):
yield f
if fsync:
f.flush()
os.fsync(file.fileno())
os.fsync(f.fileno())
os.rename(tmppath, filepath)

def safe_pickle_dump(obj, fname):
Expand Down

0 comments on commit dd4ae7e

Please sign in to comment.