Don't use string methods to allow sharing this code with PyXML.

This commit is contained in:
Martin v. Löwis 2000-10-07 19:03:20 +00:00
parent 13ac9926ac
commit 830b37bd74

View 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: