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

Method write

src/__init__.py:149–155  ·  view source on GitHub ↗
(self, text)

Source from the content-addressed store, hash-verified

147 pylogging_level = pylogging_logger.getEffectiveLevel()
148 class Out:
149 def write(self, text):
150 # `logging` module appends newlines, but so does the `print()`
151 # functions in our caller message() and log() fns, so we need to
152 # remove them here.
153 text = text.rstrip('\n')
154 if text:
155 pylogging_logger.log(pylogging_level, text)
156 def flush(self):
157 pass
158 ret = Out()

Callers 15

addMethod · 0.45
add_fileMethod · 0.45
add_strMethod · 0.45
installMethod · 0.45
_argv_dist_infoMethod · 0.45
_write_infoMethod · 0.45
runFunction · 0.45
git_patchFunction · 0.45
build_mupdf_windowsFunction · 0.45
_fs_updateFunction · 0.45
embedded_getFunction · 0.45
extract_objectsFunction · 0.45

Calls 1

logMethod · 0.80

Tested by 15

cibw_do_test_projectFunction · 0.36
testFunction · 0.36
test_objectstream1Function · 0.36
test_objectstream2Function · 0.36
run_codeFunction · 0.36
test_4336Function · 0.36
test_3301Function · 0.36
test_2608Function · 0.36
test_4457Function · 0.36
test_extract4Function · 0.36
merge_pdfFunction · 0.36
test_2791Function · 0.36