

def _to_base_type(self, value):
    if self._compressed:
        return _CompressedValue(zlib.compress(value))

dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py BlobProperty._to_base_type/original