(pipe, handler)
| 4 | class 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() |
nothing calls this directly
no outgoing calls
no test coverage detected