Issue #10590: xml.sax.parseString() now supports string argument.

This commit is contained in:
Serhiy Storchaka 2015-04-04 10:12:26 +03:00
parent f8aa133cce
commit 778db289b5
4 changed files with 19 additions and 4 deletions

View file

@ -47,7 +47,11 @@ The convenience functions are:
.. function:: parseString(string, handler, error_handler=handler.ErrorHandler())
Similar to :func:`parse`, but parses from a buffer *string* received as a
parameter.
parameter. *string* must be a :class:`str` instance or a
:term:`bytes-like object`.
.. versionchanged:: 3.5
Added support of :class:`str` instances.
A typical SAX application uses three kinds of objects: readers, handlers and
input sources. "Reader" in this context is another term for parser, i.e. some