xml.dom: fix typo, drop unused imports.
This commit is contained in:
parent
fb06746852
commit
6c75301eb6
|
@ -2,8 +2,6 @@
|
||||||
directly. Instead, the functions getDOMImplementation and
|
directly. Instead, the functions getDOMImplementation and
|
||||||
registerDOMImplementation should be imported from xml.dom."""
|
registerDOMImplementation should be imported from xml.dom."""
|
||||||
|
|
||||||
from xml.dom.minicompat import * # isinstance, StringTypes
|
|
||||||
|
|
||||||
# This is a list of well-known implementations. Well-known names
|
# This is a list of well-known implementations. Well-known names
|
||||||
# should be published by posting to xml-sig@python.org, and are
|
# should be published by posting to xml-sig@python.org, and are
|
||||||
# subsequently recorded in this file.
|
# subsequently recorded in this file.
|
||||||
|
|
|
@ -33,8 +33,6 @@ from xml.parsers import expat
|
||||||
from xml.dom.minidom import _append_child, _set_attribute_node
|
from xml.dom.minidom import _append_child, _set_attribute_node
|
||||||
from xml.dom.NodeFilter import NodeFilter
|
from xml.dom.NodeFilter import NodeFilter
|
||||||
|
|
||||||
from xml.dom.minicompat import *
|
|
||||||
|
|
||||||
TEXT_NODE = Node.TEXT_NODE
|
TEXT_NODE = Node.TEXT_NODE
|
||||||
CDATA_SECTION_NODE = Node.CDATA_SECTION_NODE
|
CDATA_SECTION_NODE = Node.CDATA_SECTION_NODE
|
||||||
DOCUMENT_NODE = Node.DOCUMENT_NODE
|
DOCUMENT_NODE = Node.DOCUMENT_NODE
|
||||||
|
@ -755,7 +753,7 @@ class Namespaces:
|
||||||
a = minidom.Attr("xmlns", XMLNS_NAMESPACE,
|
a = minidom.Attr("xmlns", XMLNS_NAMESPACE,
|
||||||
"xmlns", EMPTY_PREFIX)
|
"xmlns", EMPTY_PREFIX)
|
||||||
a.value = uri
|
a.value = uri
|
||||||
a.ownerDocuemnt = self.document
|
a.ownerDocument = self.document
|
||||||
_set_attribute_node(node, a)
|
_set_attribute_node(node, a)
|
||||||
del self._ns_ordered_prefixes[:]
|
del self._ns_ordered_prefixes[:]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue