HomeSoftware Heritage

Do not mutate swh.core.api.serializers.ENCODERS or DECODERS

Description

Do not mutate swh.core.api.serializers.ENCODERS or DECODERS

The previous implementation would always append extra_encoders to the main
ENCODERS list. Refactor encoder and decoder extensions both with a common getter
which doesn't mutate the global variable.

Details

Provenance
olasdAuthored on Nov 24 2020, 12:50 PM
olasdPushed on Nov 24 2020, 1:23 PM
Differential Revision
D4572: Do not mutate swh.core.api.serializers.ENCODERS or DECODERS
Parents
rDCOREf269e2d3d0f4: Add support for large negative integers in msgpack encoding
Branches
Unknown
Tags
Unknown
Build Status
Buildable 17445
Build 26956: test-and-buildJenkins console · Jenkins