summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2016-10-04 19:23:21 +0200
committermathieui <mathieui@mathieui.net>2016-10-04 19:23:21 +0200
commitd4bff8dee6ce6ed79b9b235b7a6ec36dbea234b9 (patch)
tree82f946325bba712c29d3477f71a3eecc1572775a
parent187c3508059524a86ad715a5a209fff2d22751ce (diff)
downloadslixmpp-d4bff8dee6ce6ed79b9b235b7a6ec36dbea234b9.tar.gz
slixmpp-d4bff8dee6ce6ed79b9b235b7a6ec36dbea234b9.tar.bz2
slixmpp-d4bff8dee6ce6ed79b9b235b7a6ec36dbea234b9.tar.xz
slixmpp-d4bff8dee6ce6ed79b9b235b7a6ec36dbea234b9.zip
Fix XEP-0009
Broken since 3a9b45e4f because of an overzealous cleanup.
-rw-r--r--slixmpp/plugins/xep_0009/binding.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/slixmpp/plugins/xep_0009/binding.py b/slixmpp/plugins/xep_0009/binding.py
index 31387b3f..941dd036 100644
--- a/slixmpp/plugins/xep_0009/binding.py
+++ b/slixmpp/plugins/xep_0009/binding.py
@@ -92,13 +92,13 @@ def _py2xml(*args):
def xml2py(params):
namespace = 'jabber:iq:rpc'
vals = []
- for param in params.xml.findall('{%s}param' % namespace):
+ for param in params.findall('{%s}param' % namespace):
vals.append(_xml2py(param.find('{%s}value' % namespace)))
return vals
def _xml2py(value):
namespace = 'jabber:iq:rpc'
- find_value = value.xml.find
+ find_value = value.find
if find_value('{%s}nil' % namespace) is not None:
return None
if find_value('{%s}i4' % namespace) is not None: