EntityParser does not accept whitespace at end of file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-xml |
Incomplete
|
Undecided
|
Unassigned | ||
python-xml (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
The xml.parsers.
Example program:
from xml.parsers.xmlproc import catalog
xhtmlCatalog = catalog.
)
Output:
$ python readcatalog.py
ERROR: Construct started, but never completed at /usr/share/
TEXT: '
'
Note that you will only get this output after patching bug 131595, otherwise the parsing will abort before the end of the file.
Suggested solution:
Disable the following lines in the "skip_ws" method:
if match.end() == self.datasize:
raise OutOfDataExcept
See "_xmlplus/
Version info: python-xml 0.8.4-6ubuntu4 on feisty.
Is this symptom still reproducible in 8.10 beta or later?