Skip to content

Commit

Permalink
Fix to use os.fsync
Browse files Browse the repository at this point in the history
  • Loading branch information
thombashi committed Mar 21, 2021
1 parent 75ab160 commit 78c3079
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytablereader/factory/_url.py
Expand Up @@ -206,7 +206,7 @@ def _fetch_source(self, loader_class):
with open(self._source, "wb") as f:
f.write(r.content)
f.flush()
os.fdatasync(f.fileno())
os.fsync(f.fileno())

atexit.register(remove_temp_file, dir_path=self.__temp_dir_path, file_path=self._source)

Expand Down

0 comments on commit 78c3079

Please sign in to comment.