mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-12-28 11:14:19 +00:00
Update tostring docs to clarify what the xmlns and stanza_ns parameters do.
This commit is contained in:
parent
e077204a16
commit
3c0dfb56e6
2 changed files with 8 additions and 0 deletions
|
@ -11,6 +11,10 @@ def tostring(xml=None, xmlns='', stanza_ns='', stream=None, outbuffer=''):
|
|||
"""
|
||||
Serialize an XML object to a Unicode string.
|
||||
|
||||
If namespaces are provided using xmlns or stanza_ns, then elements
|
||||
that use those namespaces will not include the xmlns attribute in
|
||||
the output.
|
||||
|
||||
Arguments:
|
||||
xml -- The XML object to serialize. If the value is None,
|
||||
then the XML object contained in this stanza
|
||||
|
|
|
@ -14,6 +14,10 @@ def tostring(xml=None, xmlns='', stanza_ns='', stream=None, outbuffer=''):
|
|||
"""
|
||||
Serialize an XML object to a Unicode string.
|
||||
|
||||
If namespaces are provided using xmlns or stanza_ns, then elements
|
||||
that use those namespaces will not include the xmlns attribute in
|
||||
the output.
|
||||
|
||||
Arguments:
|
||||
xml -- The XML object to serialize. If the value is None,
|
||||
then the XML object contained in this stanza
|
||||
|
|
Loading…
Reference in a new issue