def u(x, encoding='ascii'):
    if isinstance(x, TEXT): #pragma NO COVER
        return x
    try:
        return x.decode(encoding)
    except AttributeError: #pragma NO COVER
        raise ValueError('WTF: %s' % x)
dataset/ETHPy150Open joestump/python-oauth2/oauth2/_compat.py/u/original