MCPcopy Create free account
hub / github.com/RustPython/RustPython / _sync_close

Function _sync_close

Lib/mailbox.py:2200–2203  ·  view source on GitHub ↗

Close file f, ensuring all changes are physically on disk.

(f)

Source from the content-addressed store, hash-verified

2198 os.fsync(f.fileno())
2199
2200def _sync_close(f):
2201 """Close file f, ensuring all changes are physically on disk."""
2202 _sync_flush(f)
2203 f.close()
2204
2205
2206class Error(Exception):

Callers 6

addMethod · 0.85
flushMethod · 0.85
addMethod · 0.85
__setitem__Method · 0.85
unlockMethod · 0.85
set_sequencesMethod · 0.85

Calls 2

_sync_flushFunction · 0.85
closeMethod · 0.45

Tested by

no test coverage detected