-
-
Notifications
You must be signed in to change notification settings - Fork 31.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expat sax parser silently ignores the InputSource protocol #46428
Comments
The expat sax parser in xml.sax.expatreader Rather than silently doing the wrong thing, And most importantly, these limitations should be mentioned |
As nobody appears to be interested I'll close this in a couple of weeks unless someone objects. |
Perhaps more people would be interested if An alternative would be to remove the expat |
I'll have a look. |
Here is a patch, which made xml.sax.xmlreader and related utilities to support character stream. A lot of new tests added (including Yitz Gale's tests from bpo-1483). Some old tests fixed (they were used text stream as byte stream, this doesn't work in general case). |
This patch is rather complicated and I doubt whether it is necessary to apply it to the older version. Can anyone review it? |
Ping. |
Updated to the tip, added whatsnew entry and fixed the documentation. What parts of this patch besides tests are worth to be applied to maintained releases? |
New changeset 84d49ad9109b by Serhiy Storchaka in branch '2.7': New changeset fa47897e7889 by Serhiy Storchaka in branch '3.4': New changeset e0292b3ba245 by Serhiy Storchaka in branch 'default': New changeset 407883c52bf3 by Serhiy Storchaka in branch 'default': |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: