mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-34789: make xml.sax.make_parser accept iterables of all types (GH-9576)
This commit is contained in:
parent
10cb3760e8
commit
a6dc531063
4 changed files with 38 additions and 5 deletions
|
@ -40,10 +40,13 @@ The convenience functions are:
|
|||
|
||||
Create and return a SAX :class:`~xml.sax.xmlreader.XMLReader` object. The
|
||||
first parser found will
|
||||
be used. If *parser_list* is provided, it must be a sequence of strings which
|
||||
be used. If *parser_list* is provided, it must be an iterable of strings which
|
||||
name modules that have a function named :func:`create_parser`. Modules listed
|
||||
in *parser_list* will be used before modules in the default list of parsers.
|
||||
|
||||
.. versionchanged:: 3.8
|
||||
The *parser_list* argument can be any iterable, not just a list.
|
||||
|
||||
|
||||
.. function:: parse(filename_or_stream, handler, error_handler=handler.ErrorHandler())
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue