def endCDATA(self):
        """
        We're no longer in a CDATA element.  Collect up the characters we've
        parsed and put them in a new CDATA object.
        """
        self.inCDATA = False
        comment = ''.join(self.stack.pop())
        self.current.append(CDATA(comment))

        We're no longer in a CDATA element.  Collect up the characters we've
        parsed and put them in a new CDATA object.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/template.py