From eef4acd30bcf4699bdbf9d8c4e01c76ce4fd332f Mon Sep 17 00:00:00 2001 From: Athanasius <github@miggy.org> Date: Wed, 10 Mar 2021 16:07:06 +0000 Subject: [PATCH] Document `line` param to `parse_entry()` --- monitor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/monitor.py b/monitor.py index 2a5499e2..61f2d3d2 100644 --- a/monitor.py +++ b/monitor.py @@ -439,6 +439,8 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below This augments some events, sets internal state in reaction to many and loads some extra files, e.g. Cargo.json, as necessary. + :param line: bytes - The entry being parsed. Yes, this is bytes, not str. + We rely on json.loads() dealing with this properly. :return: Dict of the processed event. """ # TODO(A_D): a bunch of these can be simplified to use if itertools.product and filters