diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2012-03-05 11:35:15 (GMT) |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2012-03-05 11:35:15 (GMT) |
commit | 6c75301eb6892170dcbea634b3be5cfa179c3d2e (patch) | |
tree | 74c5b819630a0e5ef854832a68003200dd2d8b59 /Lib/xml/dom | |
parent | fb06746852f8d84455e15fe8ba650e87fc37fe97 (diff) | |
download | cpython-6c75301eb6892170dcbea634b3be5cfa179c3d2e.zip cpython-6c75301eb6892170dcbea634b3be5cfa179c3d2e.tar.gz cpython-6c75301eb6892170dcbea634b3be5cfa179c3d2e.tar.bz2 |
xml.dom: fix typo, drop unused imports.
Diffstat (limited to 'Lib/xml/dom')
-rw-r--r-- | Lib/xml/dom/domreg.py | 2 | ||||
-rw-r--r-- | Lib/xml/dom/expatbuilder.py | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/Lib/xml/dom/domreg.py b/Lib/xml/dom/domreg.py index cb35bb0..8c3d901 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 ff9c1f1..f074ab9 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[:] |