From d4bff8dee6ce6ed79b9b235b7a6ec36dbea234b9 Mon Sep 17 00:00:00 2001 From: mathieui Date: Tue, 4 Oct 2016 19:23:21 +0200 Subject: Fix XEP-0009 Broken since 3a9b45e4f because of an overzealous cleanup. --- slixmpp/plugins/xep_0009/binding.py | 4 ++-- 1 file 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: -- cgit v1.2.3