diff --git a/glean_parser/go_server.py b/glean_parser/go_server.py index 403a0d71..03abb728 100644 --- a/glean_parser/go_server.py +++ b/glean_parser/go_server.py @@ -21,6 +21,7 @@ The generated code creates the following: * Two methods for logging an Event metric one with and one without user request info specified """ + from collections import defaultdict from pathlib import Path from typing import Any, Dict, Optional, List diff --git a/glean_parser/javascript_server.py b/glean_parser/javascript_server.py index cdaa0cb4..f5099d26 100644 --- a/glean_parser/javascript_server.py +++ b/glean_parser/javascript_server.py @@ -28,6 +28,7 @@ There are two patterns for event structure supported in this environment: Therefore, unlike in other outputters, here we don't generate classes for each metric. """ + from collections import defaultdict from pathlib import Path from typing import Any, Dict, Optional, List diff --git a/glean_parser/python_server.py b/glean_parser/python_server.py index 8ead0eb3..db9d39f5 100644 --- a/glean_parser/python_server.py +++ b/glean_parser/python_server.py @@ -20,6 +20,7 @@ see `SUPPORTED_METRIC_TYPES` below. The generated code creates a `ServerEventLogger` class for each ping that has at least one event metric. The class has a `record` method for each event metric. """ + from collections import defaultdict from pathlib import Path from typing import Any, Dict, Optional, List diff --git a/glean_parser/ruby_server.py b/glean_parser/ruby_server.py index bbca3df8..21c21544 100644 --- a/glean_parser/ruby_server.py +++ b/glean_parser/ruby_server.py @@ -18,6 +18,7 @@ Then it's the role of the ingestion pipeline to pick the messages up and process Warning: this outputter supports a limited set of metrics, see `SUPPORTED_METRIC_TYPES` below. """ + from collections import defaultdict from pathlib import Path from typing import Any, Dict, List, Optional diff --git a/tools/extract_data_categories.py b/tools/extract_data_categories.py index 855a44f3..34f88c70 100755 --- a/tools/extract_data_categories.py +++ b/tools/extract_data_categories.py @@ -129,7 +129,7 @@ def update_lines( for line in lines_iter: output.append(line) - if line.startswith(f" data_reviews:"): + if line.startswith(" data_reviews:"): break for line in lines_iter: