bpo-28235: Fix xml.etree.ElementTree.fromstring docs (GH-11903)

(cherry picked from commit e5458bdb6a)

Co-authored-by: Manjusaka <lizheao940510@gmail.com>
This commit is contained in:
Miss Islington (bot) 2019-02-21 16:45:31 -08:00 committed by GitHub
parent 7121a6eeb7
commit b046f1bada
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -490,10 +490,12 @@ Functions
*elem* is an element tree or an individual element. *elem* is an element tree or an individual element.
.. 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)