MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / read_process

Function read_process

tests_python/debugger_unittest.py:372–391  ·  view source on GitHub ↗
(stream, buffer, debug_stream, stream_name, finish)

Source from the content-addressed store, hash-verified

370
371
372def read_process(stream, buffer, debug_stream, stream_name, finish):
373 while True:
374 line = stream.readline()
375 if not line:
376 break
377
378 line = line.decode("utf-8", errors="replace")
379
380 if SHOW_STDOUT:
381 debug_stream.write(
382 "%s: %s"
383 % (
384 stream_name,
385 line,
386 )
387 )
388 buffer.append(line)
389
390 if finish[0]:
391 return
392
393
394def start_in_daemon_thread(target, args):

Callers

nothing calls this directly

Calls 4

readlineMethod · 0.45
decodeMethod · 0.45
writeMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected