def one_line_desc(obj):
    """Get a one line description of a class."""

    logger = logging.getLogger(__name__)

    try:
        doc = ParsedDocstring(obj.__doc__)
        return doc.short_desc
    except:  # pylint:disable=bare-except; We don't want a misbehaving exception to break the program
        logger.warning("Could not parse docstring for %s", obj, exc_info=True)
        return ""
def one_line_desc ( obj ) : logger = logging . getLogger ( __name__ ) try : doc = ParsedDocstring ( obj . __doc__ ) return doc . short_desc except : logger . warning ( "Could not parse docstring for %s" , obj , exc_info = True ) return ""
Get a one line description of a class.