Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-export
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Aymeric Varasse
swh-export
Commits
8d4fea3a
Commit
8d4fea3a
authored
7 months ago
by
Antoine Lambert
Browse files
Options
Downloads
Patches
Plain Diff
journalprocessor: Fix black formatting
parent
f0ce0ae4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
swh/dataset/journalprocessor.py
+5
-7
5 additions, 7 deletions
swh/dataset/journalprocessor.py
with
5 additions
and
7 deletions
swh/dataset/journalprocessor.py
+
5
−
7
View file @
8d4fea3a
...
...
@@ -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
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment