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

Method xinclude_loader

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

Source from the content-addressed store, hash-verified

1997class XIncludeTest(unittest.TestCase):
1998
1999 def xinclude_loader(self, href, parse="xml", encoding=None):
2000 try:
2001 data = XINCLUDE[href]
2002 except KeyError:
2003 raise OSError("resource not found")
2004 if parse == "xml":
2005 data = ET.XML(data)
2006 return data
2007
2008 def none_loader(self, href, parser, encoding=None):
2009 return None

Callers 4

test_xinclude_defaultMethod · 0.95
test_xincludeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected