(data)
return data
Safe str for Python 3 and Python 2
Safe str for Python 3 and Python 2
Safe str for Python 3 and Python 2
def _str(data):
    """Safe str for Python 3 and Python 2"""
    if sys.version_info[0] >= 3:
        try:
            return data.decode()
        except (UnicodeDecodeError, AttributeError):
            pass
    return data
def _str ( data ) : if sys . version_info [ 0 ] >= 3 : try : return data . decode ( ) except ( UnicodeDecodeError , AttributeError ) : pass return data