Close file f, ensuring all changes are physically on disk.
(f)
| 2131 | os.fsync(f.fileno()) |
| 2132 | |
| 2133 | def _sync_close(f): |
| 2134 | """Close file f, ensuring all changes are physically on disk.""" |
| 2135 | _sync_flush(f) |
| 2136 | f.close() |
| 2137 | |
| 2138 | |
| 2139 | class Error(Exception): |
no test coverage detected