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

@@ -58,12 +58,12 @@ class Presence(RootStanza):
plugin_attrib = name
interfaces = set(['type', 'to', 'from', 'id', 'show',
'status', 'priority'])
sub_interfaces = set(['show', 'status', 'priority'])
lang_interfaces = set(['status'])
sub_interfaces = {'show', 'status', 'priority'}
lang_interfaces = {'status'}
types = set(['available', 'unavailable', 'error', 'probe', 'subscribe',
'subscribed', 'unsubscribe', 'unsubscribed'])
showtypes = set(['dnd', 'chat', 'xa', 'away'])
showtypes = {'dnd', 'chat', 'xa', 'away'}
def __init__(self, *args, **kwargs):
"""