summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2017-10-08 15:42:48 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2017-10-08 15:42:48 +0100
commite3fd0af9c8ae6156276c94cdb4b27f96dfc22ea5 (patch)
treed59aa9a9942c20f0411b74a65865d97be3876858
parent27e23672c105c0ace6efb86ee9114645dd7d90dc (diff)
downloadslixmpp-e3fd0af9c8ae6156276c94cdb4b27f96dfc22ea5.tar.gz
slixmpp-e3fd0af9c8ae6156276c94cdb4b27f96dfc22ea5.tar.bz2
slixmpp-e3fd0af9c8ae6156276c94cdb4b27f96dfc22ea5.tar.xz
slixmpp-e3fd0af9c8ae6156276c94cdb4b27f96dfc22ea5.zip
xep_0054: Fix parsing BINVAL element.
-rw-r--r--slixmpp/plugins/xep_0054/stanza.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/slixmpp/plugins/xep_0054/stanza.py b/slixmpp/plugins/xep_0054/stanza.py
index 9bdcb448..b1da117d 100644
--- a/slixmpp/plugins/xep_0054/stanza.py
+++ b/slixmpp/plugins/xep_0054/stanza.py
@@ -261,7 +261,7 @@ class BinVal(ElementBase):
def get_binval(self):
parent = self.parent()
- xml = parent.find('{%s}BINVAL' % self.namespace)
+ xml = parent.xml.find('{%s}BINVAL' % self.namespace)
if xml is not None:
return base64.b64decode(bytes(xml.text))
return b''