[issue30264] [Windows] test_sax: Warning -- files was modified by test_sax

STINNER Victor report at bugs.python.org
Wed May 3 19:59:10 EDT 2017


STINNER Victor added the comment:

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

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30264>
_______________________________________


More information about the Python-bugs-list mailing list