MCPcopy Index your code
hub / github.com/pymupdf/PyMuPDF / _fs_update

Function _fs_update

setup.py:1077–1086  ·  view source on GitHub ↗
(text, path)

Source from the content-addressed store, hash-verified

1075 return v0, v1, v2
1076
1077def _fs_update(text, path):
1078 try:
1079 with open( path) as f:
1080 text0 = f.read()
1081 except OSError:
1082 text0 = None
1083 print(f'path={path!r} text==text0={text==text0!r}')
1084 if text != text0:
1085 with open( path, 'w') as f:
1086 f.write( text)
1087
1088
1089def _build_extension( mupdf_local, mupdf_build_dir, build_type, g_py_limited_api):

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…