summaryrefslogtreecommitdiff
path: root/sleekxmpp
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2010-08-05 20:43:38 -0400
committerLance Stout <lancestout@gmail.com>2010-08-05 20:43:38 -0400
commit3c0dfb56e6dcd864a29523950fcc23e6c3761ff7 (patch)
tree688e190152f6f8750080074c75fe8bf6c2693b77 /sleekxmpp
parente077204a16c76df4af90ba067e94c31af3d9e372 (diff)
downloadslixmpp-3c0dfb56e6dcd864a29523950fcc23e6c3761ff7.tar.gz
slixmpp-3c0dfb56e6dcd864a29523950fcc23e6c3761ff7.tar.bz2
slixmpp-3c0dfb56e6dcd864a29523950fcc23e6c3761ff7.tar.xz
slixmpp-3c0dfb56e6dcd864a29523950fcc23e6c3761ff7.zip
Update tostring docs to clarify what the xmlns and stanza_ns parameters do.
Diffstat (limited to 'sleekxmpp')
-rw-r--r--sleekxmpp/xmlstream/tostring/tostring.py4
-rw-r--r--sleekxmpp/xmlstream/tostring/tostring26.py4
2 files changed, 8 insertions, 0 deletions
diff --git a/sleekxmpp/xmlstream/tostring/tostring.py b/sleekxmpp/xmlstream/tostring/tostring.py
index 62ff1181..c2696321 100644
--- a/sleekxmpp/xmlstream/tostring/tostring.py
+++ b/sleekxmpp/xmlstream/tostring/tostring.py
@@ -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
diff --git a/sleekxmpp/xmlstream/tostring/tostring26.py b/sleekxmpp/xmlstream/tostring/tostring26.py
index 9dba2717..7a376374 100644
--- a/sleekxmpp/xmlstream/tostring/tostring26.py
+++ b/sleekxmpp/xmlstream/tostring/tostring26.py
@@ -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