Skip to content
Snippets Groups Projects
Commit a371a78a authored by Nicolas Dandrimont's avatar Nicolas Dandrimont
Browse files

Add backwards-compatibility warning to msgpack_loads

parent 041728f8
No related branches found
No related tags found
No related merge requests found
......@@ -195,7 +195,12 @@ def msgpack_dumps(data: Any, extra_encoders=None) -> bytes:
def msgpack_loads(data: bytes, extra_decoders=None) -> Any:
"""Read data as a msgpack stream"""
"""Read data as a msgpack stream.
.. Caution::
This function is used by swh.journal to decode the contents of the
journal. This function **must** be kept backwards-compatible.
"""
decoders = DECODERS
if extra_decoders:
decoders = {**decoders, **extra_decoders}
......
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