mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-27 19:19:54 +00:00
Fixed tostring bug when using mapped namespaces.
This commit is contained in:
parent
bb219595a7
commit
2662131124
2 changed files with 2 additions and 2 deletions
|
@ -46,7 +46,7 @@ def tostring(xml=None, xmlns='', stanza_ns='', stream=None, outbuffer=''):
|
||||||
if stream and tag_xmlns in stream.namespace_map:
|
if stream and tag_xmlns in stream.namespace_map:
|
||||||
mapped_namespace = stream.namespace_map[tag_xmlns]
|
mapped_namespace = stream.namespace_map[tag_xmlns]
|
||||||
if mapped_namespace:
|
if mapped_namespace:
|
||||||
tag = "%s:%s" % (mapped_namespace, tag_name)
|
tag_name = "%s:%s" % (mapped_namespace, tag_name)
|
||||||
output.append("<%s" % tag_name)
|
output.append("<%s" % tag_name)
|
||||||
output.append(namespace)
|
output.append(namespace)
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,7 @@ def tostring(xml=None, xmlns='', stanza_ns='', stream=None, outbuffer=''):
|
||||||
if stream and tag_xmlns in stream.namespace_map:
|
if stream and tag_xmlns in stream.namespace_map:
|
||||||
mapped_namespace = stream.namespace_map[tag_xmlns]
|
mapped_namespace = stream.namespace_map[tag_xmlns]
|
||||||
if mapped_namespace:
|
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(u"<%s" % tag_name)
|
||||||
output.append(namespace)
|
output.append(namespace)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue