MCPcopy Index your code
hub / github.com/RustPython/RustPython / _reset_lex_handler_prop

Method _reset_lex_handler_prop

Lib/xml/sax/expatreader.py:268–282  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

266 self._parser.CharacterDataHandler = self._cont_handler.characters
267
268 def _reset_lex_handler_prop(self):
269 lex = self._lex_handler_prop
270 parser = self._parser
271 if lex is None:
272 parser.CommentHandler = None
273 parser.StartCdataSectionHandler = None
274 parser.EndCdataSectionHandler = None
275 parser.StartDoctypeDeclHandler = None
276 parser.EndDoctypeDeclHandler = None
277 else:
278 parser.CommentHandler = lex.comment
279 parser.StartCdataSectionHandler = lex.startCDATA
280 parser.EndCdataSectionHandler = lex.endCDATA
281 parser.StartDoctypeDeclHandler = self.start_doctype_decl
282 parser.EndDoctypeDeclHandler = lex.endDTD
283
284 def reset(self):
285 if self._namespaces:

Callers 2

setPropertyMethod · 0.95
resetMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected