def _convert_binary(attr):
    if (BINARY_SHORT in attr):
        attr[BINARY_SHORT] = b64decode(attr[BINARY_SHORT].encode(DEFAULT_ENCODING))
    elif (BINARY_SET_SHORT in attr):
        value = attr[BINARY_SET_SHORT]
        if (value and len(value)):
            attr[BINARY_SET_SHORT] = set((b64decode(v.encode(DEFAULT_ENCODING)) for v in value))
def _convert_binary(attr):
    if (BINARY_SHORT in attr):
        attr[BINARY_SHORT] = b64decode(attr[BINARY_SHORT].encode(DEFAULT_ENCODING))
    elif (BINARY_SET_SHORT in attr):
        value = attr[BINARY_SET_SHORT]
        if (value and len(value)):
            attr[BINARY_SET_SHORT] = set((b64decode(v.encode(DEFAULT_ENCODING)) for v in value))