summaryrefslogtreecommitdiff
path: root/slixmpp/plugins/xep_0152
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-10-22 13:21:06 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-10-22 13:21:44 +0100
commitdcacc7d7d50d3f720cb14f1382c6d4f5a13664a4 (patch)
tree2fcadd89e8d8244a22769edd57426c8e2146d2ad /slixmpp/plugins/xep_0152
parentc4285961df7004f6c54d6d38960c4c075d0877b6 (diff)
downloadslixmpp-dcacc7d7d50d3f720cb14f1382c6d4f5a13664a4.tar.gz
slixmpp-dcacc7d7d50d3f720cb14f1382c6d4f5a13664a4.tar.bz2
slixmpp-dcacc7d7d50d3f720cb14f1382c6d4f5a13664a4.tar.xz
slixmpp-dcacc7d7d50d3f720cb14f1382c6d4f5a13664a4.zip
sed -i 's/set(\[\(.*\)\])$/{\1}/g' **/*.py
Diffstat (limited to 'slixmpp/plugins/xep_0152')
-rw-r--r--slixmpp/plugins/xep_0152/reachability.py2
-rw-r--r--slixmpp/plugins/xep_0152/stanza.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/slixmpp/plugins/xep_0152/reachability.py b/slixmpp/plugins/xep_0152/reachability.py
index e6d94b65..3ff5e118 100644
--- a/slixmpp/plugins/xep_0152/reachability.py
+++ b/slixmpp/plugins/xep_0152/reachability.py
@@ -23,7 +23,7 @@ class XEP_0152(BasePlugin):
name = 'xep_0152'
description = 'XEP-0152: Reachability Addresses'
- dependencies = set(['xep_0163'])
+ dependencies = {'xep_0163'}
stanza = stanza
def plugin_end(self):
diff --git a/slixmpp/plugins/xep_0152/stanza.py b/slixmpp/plugins/xep_0152/stanza.py
index 661544e3..cbf725fa 100644
--- a/slixmpp/plugins/xep_0152/stanza.py
+++ b/slixmpp/plugins/xep_0152/stanza.py
@@ -21,9 +21,9 @@ class Address(ElementBase):
namespace = 'urn:xmpp:reach:0'
plugin_attrib = 'address'
plugin_multi_attrib = 'addresses'
- interfaces = set(['uri', 'desc'])
- lang_interfaces = set(['desc'])
- sub_interfaces = set(['desc'])
+ interfaces = {'uri', 'desc'}
+ lang_interfaces = {'desc'}
+ sub_interfaces = {'desc'}
register_stanza_plugin(Reachability, Address, iterable=True)