sed -i 's/set(\[\(.*\)\])$/{\1}/g' **/*.py

This commit is contained in:
Emmanuel Gil Peyrot
2016-10-22 13:21:06 +01:00
parent c4285961df
commit dcacc7d7d5
116 changed files with 262 additions and 262 deletions

View File

@@ -27,7 +27,7 @@ class XEP_0079(BasePlugin):
name = 'xep_0079'
description = 'XEP-0079: Advanced Message Processing'
dependencies = set(['xep_0030'])
dependencies = {'xep_0030'}
stanza = stanza
def plugin_init(self):

View File

@@ -15,7 +15,7 @@ class AMP(ElementBase):
namespace = 'http://jabber.org/protocol/amp'
name = 'amp'
plugin_attrib = 'amp'
interfaces = set(['from', 'to', 'status', 'per_hop'])
interfaces = {'from', 'to', 'status', 'per_hop'}
def get_from(self):
return JID(self._get_attr('from'))
@@ -53,7 +53,7 @@ class Rule(ElementBase):
name = 'rule'
plugin_attrib = name
plugin_multi_attrib = 'rules'
interfaces = set(['action', 'condition', 'value'])
interfaces = {'action', 'condition', 'value'}
class InvalidRules(ElementBase):