To reduce docstrings from TurtleScreen class for functions
(docstr)
| 3823 | return newdocstr |
| 3824 | |
| 3825 | def _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 |
nothing calls this directly
no outgoing calls
no test coverage detected