MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / _screen_docrevise

Function _screen_docrevise

Python/Turtle.py:3825–3835  ·  view source on GitHub ↗

To reduce docstrings from TurtleScreen class for functions

(docstr)

Source from the content-addressed store, hash-verified

3823 return newdocstr
3824
3825def _screen_docrevise(docstr):
3826 """To reduce docstrings from TurtleScreen class for functions
3827 """
3828 import re
3829 if docstr is None:
3830 return None
3831 screenname = _CFG["examplescreen"]
3832 newdocstr = docstr.replace("%s." % screenname,"")
3833 parexp = re.compile(r' \(.+ %s\):' % screenname)
3834 newdocstr = parexp.sub(":", newdocstr)
3835 return newdocstr
3836
3837## The following mechanism makes all methods of RawTurtle and Turtle available
3838## as functions. So we can enhance, change, add, delete methods to these

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected