diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2016-10-22 13:20:27 +0100 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2016-10-22 13:21:42 +0100 |
commit | c4285961df7004f6c54d6d38960c4c075d0877b6 (patch) | |
tree | 62cfaa24e4204a0cbfc4936462c0efe0892e3443 /slixmpp/plugins/xep_0060 | |
parent | 1038f656eb1f766983a5869611daab447817a6ac (diff) | |
download | slixmpp-c4285961df7004f6c54d6d38960c4c075d0877b6.tar.gz slixmpp-c4285961df7004f6c54d6d38960c4c075d0877b6.tar.bz2 slixmpp-c4285961df7004f6c54d6d38960c4c075d0877b6.tar.xz slixmpp-c4285961df7004f6c54d6d38960c4c075d0877b6.zip |
sed -i 's/set((\(.*\)))$/{\1}/g' **/*.py
Diffstat (limited to 'slixmpp/plugins/xep_0060')
-rw-r--r-- | slixmpp/plugins/xep_0060/stanza/pubsub.py | 20 | ||||
-rw-r--r-- | slixmpp/plugins/xep_0060/stanza/pubsub_errors.py | 2 | ||||
-rw-r--r-- | slixmpp/plugins/xep_0060/stanza/pubsub_event.py | 6 | ||||
-rw-r--r-- | slixmpp/plugins/xep_0060/stanza/pubsub_owner.py | 8 |
4 files changed, 18 insertions, 18 deletions
diff --git a/slixmpp/plugins/xep_0060/stanza/pubsub.py b/slixmpp/plugins/xep_0060/stanza/pubsub.py index 841e69d2..210bce08 100644 --- a/slixmpp/plugins/xep_0060/stanza/pubsub.py +++ b/slixmpp/plugins/xep_0060/stanza/pubsub.py @@ -30,7 +30,7 @@ class Affiliation(ElementBase): namespace = 'http://jabber.org/protocol/pubsub' name = 'affiliation' plugin_attrib = name - interfaces = set(('node', 'affiliation', 'jid')) + interfaces = {'node', 'affiliation', 'jid'} def set_jid(self, value): self._set_attr('jid', str(value)) @@ -43,7 +43,7 @@ class Subscription(ElementBase): namespace = 'http://jabber.org/protocol/pubsub' name = 'subscription' plugin_attrib = name - interfaces = set(('jid', 'node', 'subscription', 'subid')) + interfaces = {'jid', 'node', 'subscription', 'subid'} def set_jid(self, value): self._set_attr('jid', str(value)) @@ -70,7 +70,7 @@ class Item(ElementBase): namespace = 'http://jabber.org/protocol/pubsub' name = 'item' plugin_attrib = name - interfaces = set(('id', 'payload')) + interfaces = {'id', 'payload'} def set_payload(self, value): del self['payload'] @@ -95,7 +95,7 @@ class Items(ElementBase): namespace = 'http://jabber.org/protocol/pubsub' name = 'items' plugin_attrib = name - interfaces = set(('node', 'max_items')) + interfaces = {'node', 'max_items'} def set_max_items(self, value): self._set_attr('max_items', str(value)) @@ -112,7 +112,7 @@ class Default(ElementBase): namespace = 'http://jabber.org/protocol/pubsub' name = 'default' plugin_attrib = name - interfaces = set(('node', 'type')) + interfaces = {'node', 'type'} def get_type(self): t = self._get_attr('type') @@ -132,7 +132,7 @@ class Retract(ElementBase): namespace = 'http://jabber.org/protocol/pubsub' name = 'retract' plugin_attrib = name - interfaces = set(('node', 'notify')) + interfaces = {'node', 'notify'} def get_notify(self): notify = self._get_attr('notify') @@ -156,7 +156,7 @@ class Unsubscribe(ElementBase): namespace = 'http://jabber.org/protocol/pubsub' name = 'unsubscribe' plugin_attrib = name - interfaces = set(('node', 'jid', 'subid')) + interfaces = {'node', 'jid', 'subid'} def set_jid(self, value): self._set_attr('jid', str(value)) @@ -169,7 +169,7 @@ class Subscribe(ElementBase): namespace = 'http://jabber.org/protocol/pubsub' name = 'subscribe' plugin_attrib = name - interfaces = set(('node', 'jid')) + interfaces = {'node', 'jid'} def set_jid(self, value): self._set_attr('jid', str(value)) @@ -182,7 +182,7 @@ class Configure(ElementBase): namespace = 'http://jabber.org/protocol/pubsub' name = 'configure' plugin_attrib = name - interfaces = set(('node', 'type')) + interfaces = {'node', 'type'} def getType(self): t = self._get_attr('type') @@ -195,7 +195,7 @@ class Options(ElementBase): namespace = 'http://jabber.org/protocol/pubsub' name = 'options' plugin_attrib = name - interfaces = set(('jid', 'node', 'options')) + interfaces = {'jid', 'node', 'options'} def __init__(self, *args, **kwargs): ElementBase.__init__(self, *args, **kwargs) diff --git a/slixmpp/plugins/xep_0060/stanza/pubsub_errors.py b/slixmpp/plugins/xep_0060/stanza/pubsub_errors.py index 3e728009..7786c854 100644 --- a/slixmpp/plugins/xep_0060/stanza/pubsub_errors.py +++ b/slixmpp/plugins/xep_0060/stanza/pubsub_errors.py @@ -13,7 +13,7 @@ from slixmpp.xmlstream import ElementBase, ET, register_stanza_plugin class PubsubErrorCondition(ElementBase): plugin_attrib = 'pubsub' - interfaces = set(('condition', 'unsupported')) + interfaces = {'condition', 'unsupported'} plugin_attrib_map = {} plugin_tag_map = {} conditions = set(('closed-node', 'configuration-required', 'invalid-jid', diff --git a/slixmpp/plugins/xep_0060/stanza/pubsub_event.py b/slixmpp/plugins/xep_0060/stanza/pubsub_event.py index b2b53d3d..e46ad408 100644 --- a/slixmpp/plugins/xep_0060/stanza/pubsub_event.py +++ b/slixmpp/plugins/xep_0060/stanza/pubsub_event.py @@ -25,7 +25,7 @@ class EventItem(ElementBase): namespace = 'http://jabber.org/protocol/pubsub#event' name = 'item' plugin_attrib = name - interfaces = set(('id', 'payload', 'node', 'publisher')) + interfaces = {'id', 'payload', 'node', 'publisher'} def set_payload(self, value): self.xml.append(value) @@ -93,7 +93,7 @@ class EventDelete(ElementBase): namespace = 'http://jabber.org/protocol/pubsub#event' name = 'delete' plugin_attrib = name - interfaces = set(('node', 'redirect')) + interfaces = {'node', 'redirect'} def set_redirect(self, uri): del self['redirect'] @@ -117,7 +117,7 @@ class EventSubscription(ElementBase): namespace = 'http://jabber.org/protocol/pubsub#event' name = 'subscription' plugin_attrib = name - interfaces = set(('node', 'expiry', 'jid', 'subid', 'subscription')) + interfaces = {'node', 'expiry', 'jid', 'subid', 'subscription'} def get_expiry(self): expiry = self._get_attr('expiry') diff --git a/slixmpp/plugins/xep_0060/stanza/pubsub_owner.py b/slixmpp/plugins/xep_0060/stanza/pubsub_owner.py index bcb96149..850df8cf 100644 --- a/slixmpp/plugins/xep_0060/stanza/pubsub_owner.py +++ b/slixmpp/plugins/xep_0060/stanza/pubsub_owner.py @@ -25,7 +25,7 @@ class DefaultConfig(ElementBase): namespace = 'http://jabber.org/protocol/pubsub#owner' name = 'default' plugin_attrib = name - interfaces = set(('node', 'config')) + interfaces = {'node', 'config'} def __init__(self, *args, **kwargs): ElementBase.__init__(self, *args, **kwargs) @@ -51,7 +51,7 @@ class OwnerAffiliations(Affiliations): class OwnerAffiliation(Affiliation): namespace = 'http://jabber.org/protocol/pubsub#owner' - interfaces = set(('affiliation', 'jid')) + interfaces = {'affiliation', 'jid'} class OwnerConfigure(Configure): @@ -84,7 +84,7 @@ class OwnerRedirect(ElementBase): namespace = 'http://jabber.org/protocol/pubsub#owner' name = 'redirect' plugin_attrib = name - interfaces = set(('node', 'jid')) + interfaces = {'node', 'jid'} def set_jid(self, value): self._set_attr('jid', str(value)) @@ -109,7 +109,7 @@ class OwnerSubscription(ElementBase): namespace = 'http://jabber.org/protocol/pubsub#owner' name = 'subscription' plugin_attrib = name - interfaces = set(('jid', 'subscription')) + interfaces = {'jid', 'subscription'} def set_jid(self, value): self._set_attr('jid', str(value)) |