def text_(s, encoding='latin-1', errors='strict'):
    if isinstance(s, binary_type):
        return s.decode(encoding, errors)
    return s
Make sure that the handle is invalidated when is_valid is false
dataset/ETHPy150Open saltstack/salt/salt/_compat.py/text_--crossover with--dataset/ETHPy150Open CollabQ/CollabQ/openid/test/test_consumer.py/TestCheckAuthResponse.test_badResponseInvalidate