From: Stephen Seo Date: Mon, 26 Jun 2023 04:18:19 +0000 (+0900) Subject: Add doc-comment for fn handle_output_stream X-Git-Url: https://git.seodisparate.com/tbm-edit-sheep.jpg?a=commitdiff_plain;h=c013e6b37b4d440f949798ffcab77ff15c9881c5;p=AnotherAURHelper Add doc-comment for fn handle_output_stream --- diff --git a/update.py b/update.py index 4900498..e3850ef 100755 --- a/update.py +++ b/update.py @@ -1084,6 +1084,11 @@ def cleanup_sccache(chroot: str): 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 limit_reached = False while True: