Skip to content
Snippets Groups Projects
Commit 8d4fea3a authored by Antoine Lambert's avatar Antoine Lambert
Browse files

journalprocessor: Fix black formatting

parent f0ce0ae4
No related branches found
No related tags found
No related merge requests found
......@@ -494,19 +494,17 @@ class JournalProcessorWorker:
}
elif object_type in ("content", "skipped_content"):
swhid_type = ExtendedObjectType.CONTENT
make_swhids = (
lambda obj: { # noqa
ExtendedSWHID(object_type=swhid_type, object_id=obj["sha1_git"])
}
make_swhids = lambda obj: ( # noqa
{ExtendedSWHID(object_type=swhid_type, object_id=obj["sha1_git"])}
if obj.get("sha1_git")
else set()
)
else:
raise NotImplementedError(f"Unsupported object type {object_type}")
fixed_objects_by_partition: Dict[
int, List[Tuple[Any, dict]]
] = collections.defaultdict(list)
fixed_objects_by_partition: Dict[int, List[Tuple[Any, dict]]] = (
collections.defaultdict(list)
)
for message in message_list:
fixed_objects_by_partition[message.partition()].extend(
zip(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment