swh-lister/swh
Antoine Lambert 3f6c7edc24 maven: Prevent UnicodeDecodeError when processing pom file
Pass the raw bytes of pom file content in xmltodict.parse and let
it do the string decoding based on the encoding declared in pom file.

If the string decoding failed due to an invalid declared encoding,
xml.parsers.expat.ExpatError will be raised and will be caught by
the lister, ignoring the pom file and continuing listing.

Related to T3874
2022-05-02 14:01:58 +02:00
..
lister maven: Prevent UnicodeDecodeError when processing pom file 2022-05-02 14:01:58 +02:00
__init__.py Pin mypy and drop type annotations which makes mypy unhappy 2021-12-16 16:10:20 +01:00