(docstr)
return newdocstr
To reduce docstrings from RawTurtle class for functions
To reduce docstrings from RawTurtle class for functions
To reduce docstrings from RawTurtle class for functions
def _turtle_docrevise(docstr):
    """To reduce docstrings from RawTurtle class for functions
    """
    import re
    if docstr is None:
        return None
    turtlename = _CFG["exampleturtle"]
    newdocstr = docstr.replace("%s." % turtlename,"")
    parexp = re.compile(r' \(.+ %s\):' % turtlename)
    newdocstr = parexp.sub(":", newdocstr)
    return newdocstr
def _turtle_docrevise ( docstr ) : import re if docstr is None : return None turtlename = _CFG [ "exampleturtle" ] newdocstr = docstr . replace ( "%s." % turtlename , "" ) parexp = re . compile ( r' \(.+ %s\):' % turtlename ) newdocstr = parexp . sub ( ":" , newdocstr ) return newdocstr