summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2000-10-07 19:03:20 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2000-10-07 19:03:20 (GMT)
commit830b37bd74f81420cbcb27491a4c4f6498cedd54 (patch)
tree712a0a23e06b647a7d2175ea4012a2086a339f16 /Lib
parent13ac9926ac43d3bff39a08301696105208774b6e (diff)
downloadcpython-830b37bd74f81420cbcb27491a4c4f6498cedd54.zip
cpython-830b37bd74f81420cbcb27491a4c4f6498cedd54.tar.gz
cpython-830b37bd74f81420cbcb27491a4c4f6498cedd54.tar.bz2
Don't use string methods to allow sharing this code with PyXML.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/xml/dom/minidom.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/xml/dom/minidom.py b/Lib/xml/dom/minidom.py
index b2b6e7d..3ed7236 100644
--- a/Lib/xml/dom/minidom.py
+++ b/Lib/xml/dom/minidom.py
@@ -391,7 +391,8 @@ class Text(Node):
_write_data(writer, self.data)
def _nssplit(qualifiedName):
- fields = qualifiedName.split(':', 1)
+ import string
+ fields = string.split(qualifiedName,':', 1)
if len(fields) == 2:
return fields
elif len(fields) == 1: