def code(self, text):
        """Return the code instead of the comments.

        """

        comm = self.nextValidComment(text)
        while comm:
            text = text[:comm.start()] + text[comm.end():]
            comm = self.nextValidComment(text, comm.end(0))
        return text
def code ( self , text ) : comm = self . nextValidComment ( text ) while comm : text = text [ : comm . start ( ) ] + text [ comm . end ( ) : ] comm = self . nextValidComment ( text , comm . end ( 0 ) ) return text
Return the code instead of the comments.