summaryrefslogtreecommitdiffstats
path: root/Lib/xml/sax/expatreader.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/xml/sax/expatreader.py')
-rw-r--r--Lib/xml/sax/expatreader.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/xml/sax/expatreader.py b/Lib/xml/sax/expatreader.py
index d641c19..e541824 100644
--- a/Lib/xml/sax/expatreader.py
+++ b/Lib/xml/sax/expatreader.py
@@ -25,7 +25,6 @@ from xml.sax import xmlreader, saxutils, handler
AttributesImpl = xmlreader.AttributesImpl
AttributesNSImpl = xmlreader.AttributesNSImpl
-import string
import weakref
# --- ExpatLocator
@@ -220,7 +219,7 @@ class ExpatParser(xmlreader.IncrementalParser, xmlreader.Locator):
self._cont_handler.endElement(name)
def start_element_ns(self, name, attrs):
- pair = string.split(name)
+ pair = name.split()
if len(pair) == 1:
pair = (None, name)
else:
@@ -228,7 +227,7 @@ class ExpatParser(xmlreader.IncrementalParser, xmlreader.Locator):
newattrs = {}
for (aname, value) in attrs.items():
- apair = string.split(aname)
+ apair = aname.split()
if len(apair) == 1:
apair = (None, aname)
else:
@@ -240,7 +239,7 @@ class ExpatParser(xmlreader.IncrementalParser, xmlreader.Locator):
AttributesNSImpl(newattrs, {}))
def end_element_ns(self, name):
- pair = string.split(name)
+ pair = name.split()
if len(pair) == 1:
pair = (None, name)
else: