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.
--
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