@@ -825,19 +825,19 @@ Reference
825
825
Functions
826
826
^^^^^^^^^
827
827
828
- .. function :: xml.etree.ElementInclude.default_loader( href, parse, encoding=None)
828
+ .. function :: xml.etree.ElementInclude.default_loader(href, parse, encoding=None)
829
829
:module:
830
830
831
- Default loader. This default loader reads an included resource from disk. *href * is a URL.
831
+ Default loader. This default loader reads an included resource from disk. *href * is an URL.
832
832
*parse * is for parse mode either "xml" or "text". *encoding *
833
833
is an optional text encoding. If not given, encoding is ``utf-8 ``. Returns the
834
- expanded resource. If the parse mode is ``"xml" ``, this is an ElementTree
834
+ expanded resource. If the parse mode is ``"xml" ``, this is an Element
835
835
instance. If the parse mode is "text", this is a Unicode string. If the
836
836
loader fails, it can return None or raise an exception.
837
837
838
838
839
- .. function :: xml.etree.ElementInclude.include( elem, loader=None, base_url=None, \
840
- max_depth=6)
839
+ .. function :: xml.etree.ElementInclude.include(elem, loader=None, base_url=None, \
840
+ max_depth=6)
841
841
:module:
842
842
843
843
This function expands XInclude directives. *elem * is the root element. *loader * is
@@ -848,10 +848,7 @@ Functions
848
848
inclusions. Limited to reduce the risk of malicious content explosion. Pass a
849
849
negative value to disable the limitation.
850
850
851
- Returns the expanded resource. If the parse mode is
852
- ``"xml" ``, this is an ElementTree instance. If the parse mode is "text",
853
- this is a Unicode string. If the loader fails, it can return None or
854
- raise an exception.
851
+ Returns the expanded resource in *elem *.
855
852
856
853
.. versionadded :: 3.9
857
854
The *base_url * and *max_depth * parameters.
0 commit comments