MCPcopy Create free account
hub / github.com/Ishabdullah/Codey-v2 / write

Method write

core/peer_shell.py:64–69  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

62 self._buf = io.StringIO()
63
64 def write(self, data):
65 if isinstance(data, bytes):
66 data = data.decode("utf-8", errors="replace")
67 sys.stdout.write(data)
68 sys.stdout.flush()
69 self._buf.write(data)
70
71 def flush(self):
72 sys.stdout.flush()

Callers 2

run_promptedFunction · 0.45
run_positionalFunction · 0.45

Calls 1

flushMethod · 0.80

Tested by

no test coverage detected