MCPcopy Index your code
hub / github.com/apprenticeharper/DeDRM_tools / write

Method write

DeDRM_plugin/ineptpdf.py:78–82  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

76 if self.encoding == None:
77 self.encoding = "utf-8"
78 def write(self, data):
79 if isinstance(data, str):
80 data = data.encode(self.encoding,"replace")
81 self.stream.buffer.write(data)
82 self.stream.buffer.flush()
83
84 def __getattr__(self, attr):
85 return getattr(self.stream, attr)

Callers

nothing calls this directly

Calls 2

writeMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected