diff options
Diffstat (limited to 'Lib/xml/sax')
-rw-r--r-- | Lib/xml/sax/xmlreader.py | 2 |
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() |