mirror of
https://github.com/python/cpython.git
synced 2025-11-15 00:00:00 +00:00
Clarify the documentation of XMLParser.close
The return value of close() is not always a toplevel element. It depends on what the underlying target returns. By default, TreeBuilder returns the toplevel document element.
This commit is contained in:
parent
1544fc5312
commit
bfd78370a5
1 changed files with 3 additions and 1 deletions
|
|
@ -982,7 +982,9 @@ XMLParser Objects
|
||||||
|
|
||||||
.. method:: close()
|
.. method:: close()
|
||||||
|
|
||||||
Finishes feeding data to the parser. Returns an element structure.
|
Finishes feeding data to the parser. Returns the result of calling the
|
||||||
|
`close` method of the *target* passed during construction; by default,
|
||||||
|
this is the toplevel document element.
|
||||||
|
|
||||||
|
|
||||||
.. method:: doctype(name, pubid, system)
|
.. method:: doctype(name, pubid, system)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue