Message293096
> If you use directly the parser class and pass an open file object, in that case, yes, my change closes the file.
Or if the high-level *function* parse() is called with an open file object.
I don't know whether this is desirable change, but this change can break third-party code, therefore it should be documented in Misc/NEWS.
And it is worth to add a check in test_parse_bytes that the passed file object is closed after error. |
|
Date |
User |
Action |
Args |
2017-05-05 10:46:50 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, scoder, vstinner, eli.bendersky |
2017-05-05 10:46:50 | serhiy.storchaka | set | messageid: <1493981210.18.0.640328150699.issue30264@psf.upfronthosting.co.za> |
2017-05-05 10:46:50 | serhiy.storchaka | link | issue30264 messages |
2017-05-05 10:46:50 | serhiy.storchaka | create | |
|