Use more string methods, remove import string
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 @@
AttributesImpl = xmlreader.AttributesImpl
AttributesNSImpl = xmlreader.AttributesNSImpl
-import string
import weakref
# --- ExpatLocator
@@ -220,7 +219,7 @@
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 @@
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 @@
AttributesNSImpl(newattrs, {}))
def end_element_ns(self, name):
- pair = string.split(name)
+ pair = name.split()
if len(pair) == 1:
pair = (None, name)
else: