fix force variable name

This commit is contained in:
Jay Lee
2020-03-05 11:58:29 -05:00
parent e8d333a46b
commit b5d07cf5dc

View File

@@ -92,7 +92,7 @@ def close_file(f, force_flush=False):
Boolean, True if the file was successfully closed. False if an error
was encountered while closing.
"""
if force_to_disk:
if force_flush:
f.flush()
os.fsync(f.fileno())
try: