summaryrefslogtreecommitdiff
path: root/Lib/xml/dom
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2012-03-05 12:35:15 +0100
committerFlorent Xicluna <florent.xicluna@gmail.com>2012-03-05 12:35:15 +0100
commita46aa3c1b337209d0e2cfeb49b3b73a93ede8ce4 (patch)
treec6d65b8b6e658cac8d9a50c0d3f09ef7087c4141 /Lib/xml/dom
parent6ddcdb634d02bf0428c33b6e319c76f25fcc575d (diff)
downloadcpython-a46aa3c1b337209d0e2cfeb49b3b73a93ede8ce4.tar.gz
xml.dom: fix typo, drop unused imports.
Diffstat (limited to 'Lib/xml/dom')
-rw-r--r--Lib/xml/dom/domreg.py2
-rw-r--r--Lib/xml/dom/expatbuilder.py4
2 files changed, 1 insertions, 5 deletions
diff --git a/Lib/xml/dom/domreg.py b/Lib/xml/dom/domreg.py
index cb35bb0596..8c3d901acb 100644
--- a/Lib/xml/dom/domreg.py
+++ b/Lib/xml/dom/domreg.py
@@ -2,8 +2,6 @@
directly. Instead, the functions getDOMImplementation and
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
# should be published by posting to xml-sig@python.org, and are
# subsequently recorded in this file.
diff --git a/Lib/xml/dom/expatbuilder.py b/Lib/xml/dom/expatbuilder.py
index ff9c1f1690..f074ab932f 100644
--- a/Lib/xml/dom/expatbuilder.py
+++ b/Lib/xml/dom/expatbuilder.py
@@ -33,8 +33,6 @@ from xml.parsers import expat
from xml.dom.minidom import _append_child, _set_attribute_node
from xml.dom.NodeFilter import NodeFilter
-from xml.dom.minicompat import *
-
TEXT_NODE = Node.TEXT_NODE
CDATA_SECTION_NODE = Node.CDATA_SECTION_NODE
DOCUMENT_NODE = Node.DOCUMENT_NODE
@@ -755,7 +753,7 @@ class Namespaces:
a = minidom.Attr("xmlns", XMLNS_NAMESPACE,
"xmlns", EMPTY_PREFIX)
a.value = uri
- a.ownerDocuemnt = self.document
+ a.ownerDocument = self.document
_set_attribute_node(node, a)
del self._ns_ordered_prefixes[:]