summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream/stanzabase.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-10-14 17:35:37 -0700
committerLance Stout <lancestout@gmail.com>2012-10-14 17:35:37 -0700
commit7c485c6a8b25b97c7faa4abda6e82200bd09bcae (patch)
treea1f09f31f4bdd2cf8c5bc438fefcc1b3f37a861c /sleekxmpp/xmlstream/stanzabase.py
parentfc07e23ff8f2eb7c67a1dfeae0db67b182144fca (diff)
parente2e8c4b5dcca3dddfda6e60850a6754018e8f60d (diff)
downloadslixmpp-7c485c6a8b25b97c7faa4abda6e82200bd09bcae.tar.gz
slixmpp-7c485c6a8b25b97c7faa4abda6e82200bd09bcae.tar.bz2
slixmpp-7c485c6a8b25b97c7faa4abda6e82200bd09bcae.tar.xz
slixmpp-7c485c6a8b25b97c7faa4abda6e82200bd09bcae.zip
Merge branch 'master' into develop
Diffstat (limited to 'sleekxmpp/xmlstream/stanzabase.py')
-rw-r--r--sleekxmpp/xmlstream/stanzabase.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/sleekxmpp/xmlstream/stanzabase.py b/sleekxmpp/xmlstream/stanzabase.py
index 4f58953b..08ce702a 100644
--- a/sleekxmpp/xmlstream/stanzabase.py
+++ b/sleekxmpp/xmlstream/stanzabase.py
@@ -662,7 +662,7 @@ class ElementBase(object):
full_attrib = attrib
attrib_lang = ('%s|' % attrib).split('|')
attrib = attrib_lang[0]
- lang = attrib_lang[1] or ''
+ lang = attrib_lang[1] or None
kwargs = {}
if lang and attrib in self.lang_interfaces:
@@ -738,7 +738,7 @@ class ElementBase(object):
full_attrib = attrib
attrib_lang = ('%s|' % attrib).split('|')
attrib = attrib_lang[0]
- lang = attrib_lang[1] or ''
+ lang = attrib_lang[1] or None
kwargs = {}
if lang and attrib in self.lang_interfaces:
@@ -824,7 +824,7 @@ class ElementBase(object):
full_attrib = attrib
attrib_lang = ('%s|' % attrib).split('|')
attrib = attrib_lang[0]
- lang = attrib_lang[1] or ''
+ lang = attrib_lang[1] or None
kwargs = {}
if lang and attrib in self.lang_interfaces:
@@ -862,7 +862,7 @@ class ElementBase(object):
del plugin[full_attrib]
del self.plugins[(attrib, None)]
else:
- del self.plugins[(attrib, lang)]
+ del self.plugins[(attrib, plugin['lang'])]
self.loaded_plugins.remove(attrib)
try:
self.xml.remove(plugin.xml)