mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Don't use string methods to allow sharing this code with PyXML.
This commit is contained in:
parent
13ac9926ac
commit
830b37bd74
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue