]> granicus.if.org Git - python/commitdiff
Don't use string methods to allow sharing this code with PyXML.
authorMartin v. Löwis <martin@v.loewis.de>
Sat, 7 Oct 2000 19:03:20 +0000 (19:03 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sat, 7 Oct 2000 19:03:20 +0000 (19:03 +0000)
Lib/xml/dom/minidom.py

index b2b6e7db0a229fe9d6d0e1d232ffc5fb0c350485..3ed72366748a99336f9d692451b88eab24adba31 100644 (file)
@@ -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: