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