diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2000-10-07 19:03:20 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2000-10-07 19:03:20 (GMT) |
commit | 830b37bd74f81420cbcb27491a4c4f6498cedd54 (patch) | |
tree | 712a0a23e06b647a7d2175ea4012a2086a339f16 /Lib | |
parent | 13ac9926ac43d3bff39a08301696105208774b6e (diff) | |
download | cpython-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.py | 3 |
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: |