From c013e6b37b4d440f949798ffcab77ff15c9881c5 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Mon, 26 Jun 2023 13:18:19 +0900 Subject: [PATCH] Add doc-comment for fn handle_output_stream --- update.py | 5 +++++ 1 file changed, 5 insertions(+) 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: