1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-05-31 23:59:38 +03:00

Document line param to parse_entry()

This commit is contained in:
Athanasius 2021-03-10 16:07:06 +00:00
parent 3997dbab3a
commit eef4acd30b

View File

@ -439,6 +439,8 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
This augments some events, sets internal state in reaction to many and This augments some events, sets internal state in reaction to many and
loads some extra files, e.g. Cargo.json, as necessary. 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. :return: Dict of the processed event.
""" """
# TODO(A_D): a bunch of these can be simplified to use if itertools.product and filters # TODO(A_D): a bunch of these can be simplified to use if itertools.product and filters