mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Merge heads.
This commit is contained in:
commit
01d7058d6a
3 changed files with 90 additions and 37 deletions
|
|
@ -716,9 +716,9 @@ TreeBuilder Objects
|
|||
Generic element structure builder. This builder converts a sequence of
|
||||
start, data, and end method calls to a well-formed element structure. You
|
||||
can use this class to build an element structure using a custom XML parser,
|
||||
or a parser for some other XML-like format. The *element_factory* is called
|
||||
to create new :class:`Element` instances when given.
|
||||
|
||||
or a parser for some other XML-like format. *element_factory*, when given,
|
||||
must be a callable accepting two positional arguments: a tag and
|
||||
a dict of attributes. It is expected to return a new element instance.
|
||||
|
||||
.. method:: close()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue