[issue2501] xml.sax.parser() doesn't terminate when given a filename

Christian Heimes report at bugs.python.org
Thu Aug 28 20:34:43 CEST 2008


Christian Heimes <lists at cheimes.de> added the comment:

I've a better idea:


    while buffer: 

It's faster and works for both empty bytes and str.

The patch fixes the issue and re-enables three unit tests.

----------
keywords: +needs review, patch
Added file: http://bugs.python.org/file11295/xmlreader_buffer.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2501>
_______________________________________


More information about the Python-bugs-list mailing list