def old_unpad(s):
    """
    Removes padding from an input string based on a given block size.
    :param s: string
    :returns: The unpadded string.
    """
    if not s:
        return s

    try:
        return Padding.removePadding(s, blocksize=OLD_BLOCK_SIZE)
    except __HOLE__:
        # if there's an error while removing padding, just return s.
        return s


# encrypt with AES-256-CBC, encode with hex
dataset/ETHPy150Open keenlabs/KeenClient-Python/keen/scoped_keys.py/old_unpad