Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tfeldmann committed Jan 11, 2022
1 parent 8969afd commit 11d9fed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gpsdclient/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ def __init__(self, host: str = "127.0.0.1", port: Union[str, int] = "2947") -> N
self.sock = None # type: Any

def json_stream(self, filter: Iterable[str] = set()) -> Iterable[str]:
# dynamically assemble a regular expression to match the given report classes
# Dynamically assemble a regular expression to match the given report classes.
# This way we don't need to parse the json to filter by report.
if filter:
report_classes = set(f.strip().upper() for f in filter)
filter_regex = re.compile(r'"class":\s?"(%s)"' % "|".join(report_classes))
Expand Down

0 comments on commit 11d9fed

Please sign in to comment.