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

Method importNode

Lib/xml/dom/minidom.py:1820–1825  ·  view source on GitHub ↗
(self, node, deep)

Source from the content-addressed store, hash-verified

1818 return self.implementation.hasFeature(feature, version)
1819
1820 def importNode(self, node, deep):
1821 if node.nodeType == Node.DOCUMENT_NODE:
1822 raise xml.dom.NotSupportedErr("cannot import document nodes")
1823 elif node.nodeType == Node.DOCUMENT_TYPE_NODE:
1824 raise xml.dom.NotSupportedErr("cannot import document type nodes")
1825 return _clone_node(node, deep, self)
1826
1827 def writexml(self, writer, indent="", addindent="", newl="", encoding=None,
1828 standalone=None):

Callers

nothing calls this directly

Calls 1

_clone_nodeFunction · 0.85

Tested by

no test coverage detected