diff options
author | Lance Stout <lancestout@gmail.com> | 2014-02-06 09:54:45 -0800 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2014-02-06 09:54:45 -0800 |
commit | a2423b849963887415b5b86e556ccda5f9ac2913 (patch) | |
tree | c0f0147093b8637fcd12b4f8f065c8d9a8e2aaf0 /sleekxmpp/plugins/xep_0325/stanza/control.py | |
parent | 49acdac7765498f11b79dd826742ce8570aae5d2 (diff) | |
download | slixmpp-1.2.0.tar.gz slixmpp-1.2.0.tar.bz2 slixmpp-1.2.0.tar.xz slixmpp-1.2.0.zip |
Get the IoT plugins to pass tests on Py3sleek-1.2.01.2.0
Diffstat (limited to 'sleekxmpp/plugins/xep_0325/stanza/control.py')
-rw-r--r-- | sleekxmpp/plugins/xep_0325/stanza/control.py | 12 |
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): |