summaryrefslogtreecommitdiff
path: root/sleekxmpp
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2010-08-30 15:25:59 -0400
committerLance Stout <lancestout@gmail.com>2010-08-30 15:25:59 -0400
commit998741b87e7babc6e0af9bcf79f10f4422ba96f1 (patch)
treeb6e1418c7e2cd2e783bfc03a28379bcf930e8bbe /sleekxmpp
parent9c62bce2060e30e41c3710587f6bd9992625b245 (diff)
downloadslixmpp-998741b87e7babc6e0af9bcf79f10f4422ba96f1.tar.gz
slixmpp-998741b87e7babc6e0af9bcf79f10f4422ba96f1.tar.bz2
slixmpp-998741b87e7babc6e0af9bcf79f10f4422ba96f1.tar.xz
slixmpp-998741b87e7babc6e0af9bcf79f10f4422ba96f1.zip
Fixed typos in ElementBase._fix_ns
Diffstat (limited to 'sleekxmpp')
-rw-r--r--sleekxmpp/xmlstream/stanzabase.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sleekxmpp/xmlstream/stanzabase.py b/sleekxmpp/xmlstream/stanzabase.py
index 8f4874cd..7eb3f978 100644
--- a/sleekxmpp/xmlstream/stanzabase.py
+++ b/sleekxmpp/xmlstream/stanzabase.py
@@ -780,7 +780,7 @@ class ElementBase(object):
# that do not have namespaces.
namespace = ns_block.split('}')[0]
elements = ns_block.split('}')[1].split('/')
- elif use_ns:
+ elif propagate_ns:
# Apply the stanza's namespace to the following
# elements since no namespace was provided.
namespace = self.namespace
@@ -792,7 +792,7 @@ class ElementBase(object):
for element in elements:
if element:
# Skip empty entry artifacts from splitting.
- if use_ns:
+ if propagate_ns:
tag = '{%s}%s' % (namespace, element)
else:
tag = element