Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6c75301

Browse files
committed
xml.dom: fix typo, drop unused imports.
1 parent fb06746 commit 6c75301

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

Lib/xml/dom/domreg.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
directly. Instead, the functions getDOMImplementation and
33
registerDOMImplementation should be imported from xml.dom."""
44

5-
from xml.dom.minicompat import * # isinstance, StringTypes
6-
75
# This is a list of well-known implementations. Well-known names
86
# should be published by posting to [email protected], and are
97
# subsequently recorded in this file.

Lib/xml/dom/expatbuilder.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@
3333
from xml.dom.minidom import _append_child, _set_attribute_node
3434
from xml.dom.NodeFilter import NodeFilter
3535

36-
from xml.dom.minicompat import *
37-
3836
TEXT_NODE = Node.TEXT_NODE
3937
CDATA_SECTION_NODE = Node.CDATA_SECTION_NODE
4038
DOCUMENT_NODE = Node.DOCUMENT_NODE
@@ -755,7 +753,7 @@ def start_element_handler(self, name, attributes):
755753
a = minidom.Attr("xmlns", XMLNS_NAMESPACE,
756754
"xmlns", EMPTY_PREFIX)
757755
a.value = uri
758-
a.ownerDocuemnt = self.document
756+
a.ownerDocument = self.document
759757
_set_attribute_node(node, a)
760758
del self._ns_ordered_prefixes[:]
761759

0 commit comments

Comments
 (0)