def reset(self): _ExpatParser.reset(self) parser = self._parser parser.StartDoctypeDeclHandler = self.start_doctype_decl parser.EntityDeclHandler = self.entity_decl parser.UnparsedEntityDeclHandler = self.unparsed_entity_decl parser.ExternalEntityRefHandler = self.external_entity_ref_handler
def reset(self): ExpatParser.reset(self) if self.forbid_dtd: self._parser.StartDoctypeDeclHandler = self.start_doctype_decl if self.forbid_entities: self._parser.EntityDeclHandler = self.entity_decl self._parser.UnparsedEntityDeclHandler = self.unparsed_entity_decl
def reset(self): _ExpatParser.reset(self) parser = self._parser if self.forbid_dtd: parser.StartDoctypeDeclHandler = self.defused_start_doctype_decl if self.forbid_entities: parser.EntityDeclHandler = self.defused_entity_decl parser.UnparsedEntityDeclHandler = self.defused_unparsed_entity_decl if self.forbid_external: parser.ExternalEntityRefHandler = self.defused_external_entity_ref_handler
def reset(self): ExpatParser.reset(self) self._parser.UseForeignDTD(1)
def reset(self): ExpatParser.reset(self) # This line makes the parser think unknown # entities are external. self._parser.UseForeignDTD(True)
"""
def reset(self): ExpatParser.reset(self) self._parser.DefaultHandler = self.__default_handler self._parser.EntityDeclHandler = self.__entity_decl_handler