MCPcopy Create free account
hub / github.com/apache/cassandra-python-driver / decompress

Function decompress

cassandra/connection.py:104–107  ·  view source on GitHub ↗
(byts)

Source from the content-addressed store, hash-verified

102else:
103 # work around apparently buggy snappy decompress
104 def decompress(byts):
105 if byts == '\x00':
106 return ''
107 return snappy.decompress(byts)
108 locally_supported_compressions['snappy'] = (snappy.compress, decompress)
109
110DRIVER_NAME, DRIVER_VERSION = 'Apache Cassandra Python Driver', sys.modules['cassandra'].__version__

Callers

nothing calls this directly

Calls 1

decompressMethod · 0.80

Tested by

no test coverage detected