Skip to content

[2.7] bpo-30264: ExpatParser now closes the source #1476

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

Merged
merged 1 commit into from
May 5, 2017
Merged

[2.7] bpo-30264: ExpatParser now closes the source #1476

merged 1 commit into from
May 5, 2017

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented May 5, 2017

ExpatParser.parse() of xml.sax.xmlreader now closes the source: close
the file object or the urllib object if source is a string (not an
open file-like object).

Add test_parse_close_source() unit test.

ExpatParser.parse() of xml.sax.xmlreader now closes the source: close
the file object or the urllib object if source is a string (not an
open file-like object).

Add test_parse_close_source() unit test.
@vstinner vstinner changed the title bpo-30264: ExpatParser now closes the source [2.7] bpo-30264: ExpatParser now closes the source May 5, 2017
@vstinner vstinner merged commit d81f9e2 into python:2.7 May 5, 2017
@vstinner vstinner deleted the sax_27 branch May 5, 2017 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants