MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / Out

Class Out

src/__init__.py:148–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146 if pylogging_level is None:
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()
159 else:
160 ret = default

Callers 1

_make_outputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected