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

Method xinclude_loader

Lib/test/test_xml_etree.py:2047–2054  ·  view source on GitHub ↗
(self, href, parse="xml", encoding=None)

Source from the content-addressed store, hash-verified

2045class XIncludeTest(unittest.TestCase):
2046
2047 def xinclude_loader(self, href, parse="xml", encoding=None):
2048 try:
2049 data = XINCLUDE[href]
2050 except KeyError:
2051 raise OSError("resource not found")
2052 if parse == "xml":
2053 data = ET.XML(data)
2054 return data
2055
2056 def none_loader(self, href, parser, encoding=None):
2057 return None

Callers 4

test_xinclude_defaultMethod · 0.95
test_xincludeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected