Add doc-comment for fn handle_output_stream
This commit is contained in:
parent
ec48b1f419
commit
c013e6b37b
1 changed files with 5 additions and 0 deletions
|
@ -1084,6 +1084,11 @@ def cleanup_sccache(chroot: str):
|
||||||
|
|
||||||
|
|
||||||
def handle_output_stream(handle, output_file, other_state):
|
def handle_output_stream(handle, output_file, other_state):
|
||||||
|
"""Reads lines from an input stream "handle" and writes them to
|
||||||
|
"output_file". Flags in "other_state" determine certain behaviors, such as
|
||||||
|
prepending a timestamp to each line, or the filesize-limit for the
|
||||||
|
"output_file"."""
|
||||||
|
|
||||||
log_count = 0
|
log_count = 0
|
||||||
limit_reached = False
|
limit_reached = False
|
||||||
while True:
|
while True:
|
||||||
|
|
Loading…
Reference in a new issue