MCPcopy Index your code
hub / github.com/coleifer/huey / deserialize

Method deserialize

huey/serializer.py:60–69  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

58 return data
59
60 def deserialize(self, data):
61 if self.comp:
62 if not is_compressed(data):
63 logger.warning('compression enabled but message data does not '
64 'appear to be compressed.')
65 elif self.use_zlib:
66 data = zlib.decompress(data)
67 else:
68 data = gzip_decompress(data)
69 return self._deserialize(data)
70
71
72def constant_time_compare(s1, s2):

Callers 5

deserialize_taskMethod · 0.80
getMethod · 0.80
_getMethod · 0.80
_test_serializerMethod · 0.80

Calls 2

_deserializeMethod · 0.95
is_compressedFunction · 0.85

Tested by 2

_test_serializerMethod · 0.64