[Python-checkins] cpython: xml.dom: fix typo, drop unused imports.
florent.xicluna
python-checkins at python.org
Mon Mar 5 12:35:49 CET 2012
http://hg.python.org/cpython/rev/e5c5c0b5d16c
changeset: 75417:e5c5c0b5d16c
user: Florent Xicluna <florent.xicluna at gmail.com>
date: Mon Mar 05 12:35:15 2012 +0100
summary:
xml.dom: fix typo, drop unused imports.
files:
Lib/xml/dom/domreg.py | 2 --
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
--- 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 at python.org, and are
# subsequently recorded in this file.
diff --git a/Lib/xml/dom/expatbuilder.py b/Lib/xml/dom/expatbuilder.py
--- a/Lib/xml/dom/expatbuilder.py
+++ b/Lib/xml/dom/expatbuilder.py
@@ -33,8 +33,6 @@
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 @@
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[:]
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list