def fdatasync(fd):
 try:
  os.fdatasync(fd)
 except AttributeError:
  fsync(fd)

def fdatasync ( fd ) : try : os . fdatasync ( fd ) except AttributeError : fsync ( fd )
sync modified file data to disk .