summaryrefslogtreecommitdiffstats
path: root/Lib/xml/sax
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-09-04 02:22:52 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-09-04 02:22:52 (GMT)
commita7f4f5a772163322178ccb4c954e3bd04da5317f (patch)
tree8b6798861ec265f92bef8e7ace5155cf206ea9a7 /Lib/xml/sax
parentecaab837b6ef36edf1840afdba1fbab747c049d7 (diff)
downloadcpython-a7f4f5a772163322178ccb4c954e3bd04da5317f.zip
cpython-a7f4f5a772163322178ccb4c954e3bd04da5317f.tar.gz
cpython-a7f4f5a772163322178ccb4c954e3bd04da5317f.tar.bz2
#2501 xml.sax.parser doesn't terminate when given a filename; enable some more tests!
Reviewed by myself
Diffstat (limited to 'Lib/xml/sax')
-rw-r--r--Lib/xml/sax/xmlreader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/xml/sax/xmlreader.py b/Lib/xml/sax/xmlreader.py
index 6264ee3..5ce30b0 100644
--- a/Lib/xml/sax/xmlreader.py
+++ b/Lib/xml/sax/xmlreader.py
@@ -119,7 +119,7 @@ class IncrementalParser(XMLReader):
self.prepareParser(source)
file = source.getByteStream()
buffer = file.read(self._bufsize)
- while buffer != "":
+ while buffer:
self.feed(buffer)
buffer = file.read(self._bufsize)
self.close()