Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9347104
D8075.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D8075.diff
View Options
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
Details
Attached
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
Attached To
D8075: Remove unused fallbacks for old msgpack version
Event Timeline
Log In to Comment