MCPcopy Create free account
hub / github.com/awolverp/markupever / write

Method write

python/markupever/parser.py:52–60  ·  view source on GitHub ↗

Same as `Parser.process`. This function exists to make `Parser` like a `BytesIO` and `StringIO`. You can pass the `Parser` to each function which needs a writable buffer or IO.

(self, content: typing.Union[str, bytes])

Source from the content-addressed store, hash-verified

50 return not self.is_finished
51
52 def write(self, content: typing.Union[str, bytes]) -> int:
53 """
54 Same as `Parser.process`.
55
56 This function exists to make `Parser` like a `BytesIO` and `StringIO`.
57 You can pass the `Parser` to each function which needs a writable buffer or IO.
58 """
59 self.__raw.process(content)
60 return len(content)
61
62 def process(self, content: typing.Union[str, bytes]) -> "Parser":
63 """

Callers

nothing calls this directly

Calls 1

processMethod · 0.45

Tested by

no test coverage detected