def deserialize_bitarray(ser):
    # type: (str) -> bitarray
    """Deserialize a base 64 encoded string to a bitarray (bloomfilter)
    
    """
    ba = bitarray()
    ba.frombytes(base64.b64decode(ser.encode(encoding='UTF-8', errors='strict')))
    return ba
def deserialize_bitarray ( ser ) : ba = bitarray ( ) ba . frombytes ( base64 . b64decode ( ser . encode ( encoding = 'UTF-8' , errors = 'strict' ) ) ) return ba
Deserialize a base 64 encoded string to a bitarray (bloomfilter)