Ensure changes to file f are physically on disk.
(f)
| 2197 | os.getpid())) |
| 2198 | |
| 2199 | def _sync_flush(f): |
| 2200 | """Ensure changes to file f are physically on disk.""" |
| 2201 | f.flush() |
| 2202 | if hasattr(os, 'fsync'): |
| 2203 | os.fsync(f.fileno()) |
| 2204 | |
| 2205 | def _sync_close(f): |
| 2206 | """Close file f, ensuring all changes are physically on disk.""" |
no test coverage detected
searching dependent graphs…