diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2002-05-31 20:46:39 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2002-05-31 20:46:39 (GMT) |
commit | ab199622905b2621b2ad9abcb324fb5f124cc12f (patch) | |
tree | b9f78d40a05178f73cc76669fffc1bc7707d2d58 /Lib/xml/sax/expatreader.py | |
parent | 3f8dae73c74d2a0a0aa55c1669f73e0d6ab827e1 (diff) | |
download | cpython-ab199622905b2621b2ad9abcb324fb5f124cc12f.zip cpython-ab199622905b2621b2ad9abcb324fb5f124cc12f.tar.gz cpython-ab199622905b2621b2ad9abcb324fb5f124cc12f.tar.bz2 |
Use more string methods, remove import string
Diffstat (limited to 'Lib/xml/sax/expatreader.py')
-rw-r--r-- | Lib/xml/sax/expatreader.py | 7 |
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: |