mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-27 19:19:54 +00:00
Fixed failing tests from new XEP-0009 plugin
This commit is contained in:
parent
683f717cf7
commit
aa1996eba6
2 changed files with 3 additions and 3 deletions
|
@ -37,7 +37,7 @@ def xml2fault(params):
|
||||||
def py2xml(*args):
|
def py2xml(*args):
|
||||||
params = ET.Element("{%s}params" % _namespace)
|
params = ET.Element("{%s}params" % _namespace)
|
||||||
for x in args:
|
for x in args:
|
||||||
param = ET.Element("param")
|
param = ET.Element("{%s}param" % _namespace)
|
||||||
param.append(_py2xml(x))
|
param.append(_py2xml(x))
|
||||||
params.append(param) #<params><param>...
|
params.append(param) #<params><param>...
|
||||||
return params
|
return params
|
||||||
|
|
|
@ -6,9 +6,9 @@
|
||||||
See the file LICENSE for copying permission.
|
See the file LICENSE for copying permission.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from sleekxmpp.plugins.old_0009 import py2xml
|
|
||||||
from sleekxmpp.plugins.xep_0009.stanza.RPC import RPCQuery, MethodCall, \
|
from sleekxmpp.plugins.xep_0009.stanza.RPC import RPCQuery, MethodCall, \
|
||||||
MethodResponse
|
MethodResponse
|
||||||
|
from sleekxmpp.plugins.xep_0009.binding import py2xml
|
||||||
from sleekxmpp.stanza.iq import Iq
|
from sleekxmpp.stanza.iq import Iq
|
||||||
from sleekxmpp.test.sleektest import SleekTest
|
from sleekxmpp.test.sleektest import SleekTest
|
||||||
from sleekxmpp.xmlstream.stanzabase import register_stanza_plugin
|
from sleekxmpp.xmlstream.stanzabase import register_stanza_plugin
|
||||||
|
|
Loading…
Reference in a new issue