This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients eli.bendersky, scoder, serhiy.storchaka, vstinner
Date 2017-05-05.07:32:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1493969559.78.0.77235153639.issue30264@psf.upfronthosting.co.za>
In-reply-to
Content
> I made one design choice: the close() method of byte and character streams are called twice, I didn't call setByteStream(None) / setCharacterStream(None) to avoid creating an inconsistent source. If you really care, maybe we can reset the source to a new xmlreader.InputSource() object instead.

Hum, I just modified my PR one more time to replace try/finally: self._close_source() with "try/except: self._close_source(); raise", so file.close() is now only called once.
History
Date User Action Args
2017-05-05 07:32:39vstinnersetrecipients: + vstinner, scoder, eli.bendersky, serhiy.storchaka
2017-05-05 07:32:39vstinnersetmessageid: <1493969559.78.0.77235153639.issue30264@psf.upfronthosting.co.za>
2017-05-05 07:32:39vstinnerlinkissue30264 messages
2017-05-05 07:32:39vstinnercreate