Commit 830b37bd authored by Martin v. Löwis's avatar Martin v. Löwis

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

parent 13ac9926
...@@ -391,7 +391,8 @@ class Text(Node): ...@@ -391,7 +391,8 @@ class Text(Node):
_write_data(writer, self.data) _write_data(writer, self.data)
def _nssplit(qualifiedName): def _nssplit(qualifiedName):
fields = qualifiedName.split(':', 1) import string
fields = string.split(qualifiedName,':', 1)
if len(fields) == 2: if len(fields) == 2:
return fields return fields
elif len(fields) == 1: elif len(fields) == 1:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment