summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream/tostring/tostring26.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2010-10-01 12:41:35 -0400
committerLance Stout <lancestout@gmail.com>2010-10-01 12:41:35 -0400
commit26621311244c3546aa9a48bfdfe65021fe0861ec (patch)
tree6bb4b7d4ade96f8d9429400b271b7ce4aa3dd4b6 /sleekxmpp/xmlstream/tostring/tostring26.py
parentbb219595a777a15da360ab16c24029460036c08d (diff)
downloadslixmpp-26621311244c3546aa9a48bfdfe65021fe0861ec.tar.gz
slixmpp-26621311244c3546aa9a48bfdfe65021fe0861ec.tar.bz2
slixmpp-26621311244c3546aa9a48bfdfe65021fe0861ec.tar.xz
slixmpp-26621311244c3546aa9a48bfdfe65021fe0861ec.zip
Fixed tostring bug when using mapped namespaces.
Diffstat (limited to 'sleekxmpp/xmlstream/tostring/tostring26.py')
-rw-r--r--sleekxmpp/xmlstream/tostring/tostring26.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/xmlstream/tostring/tostring26.py b/sleekxmpp/xmlstream/tostring/tostring26.py
index 7a376374..0c02f922 100644
--- a/sleekxmpp/xmlstream/tostring/tostring26.py
+++ b/sleekxmpp/xmlstream/tostring/tostring26.py
@@ -49,7 +49,7 @@ def tostring(xml=None, xmlns='', stanza_ns='', stream=None, outbuffer=''):
if stream and tag_xmlns in stream.namespace_map:
mapped_namespace = stream.namespace_map[tag_xmlns]
if mapped_namespace:
- tag = u"%s:%s" % (mapped_namespace, tag_name)
+ tag_name = u"%s:%s" % (mapped_namespace, tag_name)
output.append(u"<%s" % tag_name)
output.append(namespace)