summaryrefslogtreecommitdiff
path: root/Lib/xml/dom/pulldom.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2011-12-10 17:55:31 -0500
committerBenjamin Peterson <benjamin@python.org>2011-12-10 17:55:31 -0500
commit8bbe788deb774d066e8d185b1af04af3b4537dfc (patch)
tree48f2bacd8db88bcdf73e7056cd58f81215da179a /Lib/xml/dom/pulldom.py
parent2122cf717f963c956b4481ca31703bbf8e391397 (diff)
parent836e9aab2f3f22faa19f2f90b340fc9b5b37cdcc (diff)
downloadcpython-git-8bbe788deb774d066e8d185b1af04af3b4537dfc.tar.gz
merge heads
Diffstat (limited to 'Lib/xml/dom/pulldom.py')
-rw-r--r--Lib/xml/dom/pulldom.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/Lib/xml/dom/pulldom.py b/Lib/xml/dom/pulldom.py
index d5ac8b2b98..43504f7656 100644
--- a/Lib/xml/dom/pulldom.py
+++ b/Lib/xml/dom/pulldom.py
@@ -1,6 +1,5 @@
import xml.sax
import xml.sax.handler
-import types
START_ELEMENT = "START_ELEMENT"
END_ELEMENT = "END_ELEMENT"
@@ -334,10 +333,7 @@ def parse(stream_or_string, parser=None, bufsize=None):
return DOMEventStream(stream, parser, bufsize)
def parseString(string, parser=None):
- try:
- from io import StringIO
- except ImportError:
- from io import StringIO
+ from io import StringIO
bufsize = len(string)
buf = StringIO(string)