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 vstinner
Date 2017-05-03.23:59:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1493855950.86.0.47904730895.issue30264@psf.upfronthosting.co.za>
In-reply-to
Content
> The question is if all parser provide a close() method?

It seems like xml.sax supports pluggable parsers, at least using the PY_SAX_PARSER environment variable. So it would be safer to add a cheap "if hasattr(parser, 'close'):" test;
History
Date User Action Args
2017-05-03 23:59:12vstinnersetrecipients: + vstinner
2017-05-03 23:59:10vstinnersetmessageid: <1493855950.86.0.47904730895.issue30264@psf.upfronthosting.co.za>
2017-05-03 23:59:10vstinnerlinkissue30264 messages
2017-05-03 23:59:10vstinnercreate