From 830b37bd74f81420cbcb27491a4c4f6498cedd54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sat, 7 Oct 2000 19:03:20 +0000 Subject: Don't use string methods to allow sharing this code with PyXML. --- Lib/xml/dom/minidom.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- cgit v0.12