MCPcopy Index your code
hub / github.com/python/cpython / _sync_close

Function _sync_close

Lib/mailbox.py:2205–2208  ·  view source on GitHub ↗

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

(f)

Source from the content-addressed store, hash-verified

2203 os.fsync(f.fileno())
2204
2205def _sync_close(f):
2206 """Close file f, ensuring all changes are physically on disk."""
2207 _sync_flush(f)
2208 f.close()
2209
2210
2211class 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…