mirror of
https://github.com/python/cpython.git
synced 2025-11-02 19:12:55 +00:00
bpo-28235: Fix xml.etree.ElementTree.fromstring docs (GH-11903)
This commit is contained in:
parent
47d9987247
commit
e5458bdb6a
1 changed files with 4 additions and 2 deletions
|
|
@ -494,10 +494,12 @@ Functions
|
||||||
by the user.
|
by the user.
|
||||||
|
|
||||||
|
|
||||||
.. function:: fromstring(text)
|
.. function:: fromstring(text, parser=None)
|
||||||
|
|
||||||
Parses an XML section from a string constant. Same as :func:`XML`. *text*
|
Parses an XML section from a string constant. Same as :func:`XML`. *text*
|
||||||
is a string containing XML data. Returns an :class:`Element` instance.
|
is a string containing XML data. *parser* is an optional parser instance.
|
||||||
|
If not given, the standard :class:`XMLParser` parser is used.
|
||||||
|
Returns an :class:`Element` instance.
|
||||||
|
|
||||||
|
|
||||||
.. function:: fromstringlist(sequence, parser=None)
|
.. function:: fromstringlist(sequence, parser=None)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue