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

Function _turtle_docrevise

Python/Turtle.py:3813–3823  ·  view source on GitHub ↗

To reduce docstrings from RawTurtle class for functions

(docstr)

Source from the content-addressed store, hash-verified

3811 return defText, callText
3812
3813def _turtle_docrevise(docstr):
3814 """To reduce docstrings from RawTurtle class for functions
3815 """
3816 import re
3817 if docstr is None:
3818 return None
3819 turtlename = _CFG["exampleturtle"]
3820 newdocstr = docstr.replace("%s." % turtlename,"")
3821 parexp = re.compile(r' \(.+ %s\):' % turtlename)
3822 newdocstr = parexp.sub(":", newdocstr)
3823 return newdocstr
3824
3825def _screen_docrevise(docstr):
3826 """To reduce docstrings from TurtleScreen class for functions

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected