def _sync_flush(f):
    f.flush()
    if hasattr(os, 'fsync'):
        os.fsync(f.fileno())
Ensure changes to file f are physically on disk.
dataset/ETHPy150Open babble/babble/include/jython/Lib/mailbox.py/_sync_flush