Issue 25040: xml.sax.make_parser makes bad use of parser_list argument default value (original) (raw)
When using xml.sax.make_parser(), there is a potential problem with the parser_list default value. If another module used a default value, like the problematic parser from PyXML, your module will also use it as default parser.
You should change this: def make_parser(parser_list = []):
by this : def make_parser(parser_list = None):
And change the following code accordingly.
BTW, I fixed by problem by simply using xml.sax.make_parser([])