MCPcopy Index your code
hub / github.com/python/cpython / _setup_subset

Method _setup_subset

Lib/xml/dom/expatbuilder.py:229–235  ·  view source on GitHub ↗

Load the internal subset if there might be one.

(self, buffer)

Source from the content-addressed store, hash-verified

227 return doc
228
229 def _setup_subset(self, buffer):
230 """Load the internal subset if there might be one."""
231 if self.document.doctype:
232 extractor = InternalSubsetExtractor()
233 extractor.parseString(buffer)
234 subset = extractor.getSubset()
235 self.document.doctype.internalSubset = subset
236
237 def start_doctype_decl_handler(self, doctypeName, systemId, publicId,
238 has_internal_subset):

Callers 2

parseFileMethod · 0.95
parseStringMethod · 0.95

Calls 3

parseStringMethod · 0.95
getSubsetMethod · 0.95

Tested by

no test coverage detected