[issue33732] Python 2.7.15: xml.sax.parse() closes file objects passed to it

2018-06-01 Thread Gibson Fahnestock
Gibson Fahnestock added the comment: As an addendum, I note that other parsers, like: parser = lxml.etree.XMLParser(compact=False) etree.parse(some_fd, parser).find('some_text').text do not close the fd they are given. --

[issue33732] Python 2.7.15: xml.sax.parse() closes file objects passed to it

2018-06-01 Thread Gibson Fahnestock
New submission from Gibson Fahnestock : Sorry if this is a duplicate, I didn't find anything. We hit some issues with this change: - Python Bug: https://bugs.python.org/issue30264 - Github PRs: https://github.com/python/cpython/pull/1451 and https://github.com/python/cpython/pull/1476