MCPcopy Create free account
hub / github.com/LeoDJ/P2Pro-Viewer / _proxy_lines

Method _proxy_lines

P2Pro/util.py:6–9  ·  view source on GitHub ↗
(pipe, handler)

Source from the content-addressed store, hash-verified

4class PipeLogger:
5 @staticmethod
6 def _proxy_lines(pipe, handler):
7 with pipe:
8 for line in pipe:
9 handler(line.decode(sys.stdout.encoding).rstrip())
10
11 def __init__(self, pipe, handler):
12 threading.Thread(target=self._proxy_lines, args=[pipe, handler]).start()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected