def _process_execs(self, contents, modulename, atype, mode="insert"):
        """Extracts all the executable methods that belong to the type."""
        #We only want to look at text after the contains statement
        match = self.RE_CONTAINS.search(contents)

        #It is possible for the type to not have any executables
        if match is not None:
            exectext = match.group("remainder")
            self._process_execs_contents(exectext, modulename, atype, mode)
def _process_execs ( self , contents , modulename , atype , mode = "insert" ) : match = self . RE_CONTAINS . search ( contents ) if match is not None : exectext = match . group ( "remainder" ) self . _process_execs_contents ( exectext , modulename , atype , mode )
Extracts all the executable methods that belong to the type.