Replace 'normalize' parameter of _translate_dict() with a hook method
This parameter was only used to execute extra code before `normalize_translation` is called. This caused some duplication, and will not work when switching to a non-JSON-LD internal representation. Removing it also makes the code of mappings more consistent, by removing specific field handling from their implementation of the `translate` method itself.
parent
466108c1
No related branches found
No related tags found
Showing
- swh/indexer/metadata_dictionary/base.py 10 additions, 7 deletionsswh/indexer/metadata_dictionary/base.py
- swh/indexer/metadata_dictionary/maven.py 14 additions, 8 deletionsswh/indexer/metadata_dictionary/maven.py
- swh/indexer/metadata_dictionary/python.py 5 additions, 5 deletionsswh/indexer/metadata_dictionary/python.py
Loading
Please register or sign in to comment