Commit bfd78370 authored by Eli Bendersky's avatar Eli Bendersky

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.
parent 1544fc53
......@@ -982,7 +982,9 @@ XMLParser Objects
.. 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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment