Returns first line of cls.__doc__, or alternative text

def get_obj_doc0(obj, alt="(no doc)"):
    """Returns first line of cls.__doc__, or alternative text"""
    ret = obj.__doc__.strip().split("\n")[0] if obj.__doc__ is not None else alt
    return ret