def _turtle_docrevise(docstr):
 import re
 if (docstr is None):
  return None
 turtlename = _CFG['exampleturtle']
 newdocstr = docstr.replace(('%s.' % turtlename), '')
 parexp = re.compile((' \\(.+ %s\\):' % turtlename))
 newdocstr = parexp.sub(':', newdocstr)
 return newdocstr

def _turtle_docrevise ( docstr ) : import re if ( docstr is None ) : return None turtlename = _CFG [ 'exampleturtle' ] newdocstr = docstr . replace ( ( '%s.' % turtlename ) , '' ) parexp = re . compile ( ( ' \\(.+ %s\\):' % turtlename ) ) newdocstr = parexp . sub ( ':' , newdocstr ) return newdocstr
to reduce docstrings from rawturtle class for functions .