(self)
return self._parser
Return the parser object, creating a new one if needed.
Return the parser object, creating a new one if needed.
Return the parser object creating a new one if needed .
def getParser(self):
        """Return the parser object, creating a new one if needed."""
        if not self._parser:
            self._parser = self.createParser()
            self._intern_setdefault = self._parser.intern.setdefault
            self._parser.buffer_text = True
            self._parser.ordered_attributes = True
            self._parser.specified_attributes = True
            self.install(self._parser)
        return self._parser
def getParser ( self ) : if not self . _parser : self . _parser = self . createParser ( ) self . _intern_setdefault = self . _parser . intern . setdefault self . _parser . buffer_text = True self . _parser . ordered_attributes = True self . _parser . specified_attributes = True self . install ( self . _parser ) return self . _parser