To reduce docstrings from RawTurtle class for functions
(docstr)
| 3811 | return defText, callText |
| 3812 | |
| 3813 | def _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 | |
| 3825 | def _screen_docrevise(docstr): |
| 3826 | """To reduce docstrings from TurtleScreen class for functions |
nothing calls this directly
no outgoing calls
no test coverage detected