summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0325/stanza
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2014-02-06 09:54:45 -0800
committerLance Stout <lancestout@gmail.com>2014-02-06 09:54:45 -0800
commita2423b849963887415b5b86e556ccda5f9ac2913 (patch)
treec0f0147093b8637fcd12b4f8f065c8d9a8e2aaf0 /sleekxmpp/plugins/xep_0325/stanza
parent49acdac7765498f11b79dd826742ce8570aae5d2 (diff)
downloadslixmpp-a2423b849963887415b5b86e556ccda5f9ac2913.tar.gz
slixmpp-a2423b849963887415b5b86e556ccda5f9ac2913.tar.bz2
slixmpp-a2423b849963887415b5b86e556ccda5f9ac2913.tar.xz
slixmpp-a2423b849963887415b5b86e556ccda5f9ac2913.zip
Get the IoT plugins to pass tests on Py3sleek-1.2.01.2.0
Diffstat (limited to 'sleekxmpp/plugins/xep_0325/stanza')
-rw-r--r--sleekxmpp/plugins/xep_0325/stanza/control.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/sleekxmpp/plugins/xep_0325/stanza/control.py b/sleekxmpp/plugins/xep_0325/stanza/control.py
index 2707191f..67107ecb 100644
--- a/sleekxmpp/plugins/xep_0325/stanza/control.py
+++ b/sleekxmpp/plugins/xep_0325/stanza/control.py
@@ -83,10 +83,10 @@ class ControlSet(ElementBase):
def get_nodes(self):
"""Return all nodes."""
- nodes = set()
+ nodes = []
for node in self['substanzas']:
if isinstance(node, RequestNode):
- nodes.add(node)
+ nodes.append(node)
return nodes
def set_nodes(self, nodes):
@@ -175,10 +175,10 @@ class ControlSet(ElementBase):
def get_datas(self):
""" Return all data elements. """
- datas = set()
+ datas = []
for data in self['substanzas']:
if isinstance(data, BaseParameter):
- datas.add(data)
+ datas.append(data)
return datas
def set_datas(self, datas):
@@ -274,10 +274,10 @@ class ControlSetResponse(ElementBase):
def get_nodes(self):
"""Return all nodes."""
- nodes = set()
+ nodes = []
for node in self['substanzas']:
if isinstance(node, RequestNode):
- nodes.add(node)
+ nodes.append(node)
return nodes
def set_nodes(self, nodes):