Page MenuHomeSoftware Heritage

D8075.diff
No OneTemporary

D8075.diff

diff --git a/swh/core/api/serializers.py b/swh/core/api/serializers.py
--- a/swh/core/api/serializers.py
+++ b/swh/core/api/serializers.py
@@ -305,21 +305,11 @@
# Fallthrough
return obj
- try:
- try:
- return msgpack.unpackb(
- data,
- raw=False,
- object_hook=decode_types,
- ext_hook=ext_hook,
- strict_map_key=False,
- timestamp=3, # convert Timestamp in datetime objects (tz UTC)
- )
- except TypeError: # msgpack < 0.6.0
- return msgpack.unpackb(
- data, raw=False, object_hook=decode_types, ext_hook=ext_hook
- )
- except TypeError: # msgpack < 0.5.2
- return msgpack.unpackb(
- data, encoding="utf-8", object_hook=decode_types, ext_hook=ext_hook
- )
+ return msgpack.unpackb(
+ data,
+ raw=False,
+ object_hook=decode_types,
+ ext_hook=ext_hook,
+ strict_map_key=False,
+ timestamp=3, # convert Timestamp in datetime objects (tz UTC)
+ )

File Metadata

Mime Type
text/plain
Expires
Thu, Jul 3, 4:57 PM (3 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3217313

Event Timeline