(s, encoding='utf-8')
return s
Returns a str if a bytes object is given.
Returns a str if a bytes object is given.
Returns a str if a bytes object is given .
def bytes_to_str(s, encoding='utf-8'):
    """Returns a str if a bytes object is given."""
    if six.PY3 and isinstance(s, bytes):
        return s.decode(encoding)
    return s
def bytes_to_str ( s , encoding = 'utf-8' ) : if six . PY3 and isinstance ( s , bytes ) : return s . decode ( encoding ) return s