def descrFromDoc(obj):
    if obj.__doc__ is None:
        return None

    lines = obj.__doc__.split("\n")
    descr = None
    try:
        if lines[0] != "" and not lines[0].isspace():
            descr = lines[0].lstrip()
        # skip first line if it's blank
        elif lines[1] != "" and not lines[1].isspace():
            descr = lines[1].lstrip()
    except IndexError:
        pass
    return descr
Extension to C{L{scanString}}, to modify matching text with modified tokens that may
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/python/zshcomp.py/descrFromDoc--crossover with--dataset/ETHPy150Open pypa/pip/pip/_vendor/pyparsing.py/ParserElement.transformString