Message10368

Author zyasoft
Recipients pekka.klarck, pjenvey, zyasoft
Date 2015-10-21.21:29:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1445462959.69.0.778790582454.issue2413@psf.upfronthosting.co.za>
In-reply-to
Content
The fix is more or less the workaround Peke identified; in https://github.com/jythontools/jython/blob/master/lib-python/2.7/xml/etree/ElementTree.py#L789 which defines the write method, opened files must always be closed via a finally. I assume this never came up on non refcounted systems, and presumably it could be also a bug in PyPy today for example. Adding Phil...

It is not fixed in current CPython 2.7 source:
https://github.com/python/cpython/blob/2.7/Lib/xml/etree/ElementTree.py#L787
History
Date User Action Args
2015-10-21 21:29:19zyasoftsetmessageid: <1445462959.69.0.778790582454.issue2413@psf.upfronthosting.co.za>
2015-10-21 21:29:19zyasoftsetrecipients: + zyasoft, pekka.klarck, pjenvey
2015-10-21 21:29:19zyasoftlinkissue2413 messages
2015-10-21 21:29:18zyasoftcreate