diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2016-10-22 13:21:06 +0100 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2016-10-22 13:21:44 +0100 |
commit | dcacc7d7d50d3f720cb14f1382c6d4f5a13664a4 (patch) | |
tree | 2fcadd89e8d8244a22769edd57426c8e2146d2ad /slixmpp/stanza | |
parent | c4285961df7004f6c54d6d38960c4c075d0877b6 (diff) | |
download | slixmpp-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/stanza')
-rw-r--r-- | slixmpp/stanza/message.py | 4 | ||||
-rw-r--r-- | slixmpp/stanza/presence.py | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/slixmpp/stanza/message.py b/slixmpp/stanza/message.py index cbb170fa..b9f93b29 100644 --- a/slixmpp/stanza/message.py +++ b/slixmpp/stanza/message.py @@ -49,9 +49,9 @@ class Message(RootStanza): plugin_attrib = name interfaces = set(['type', 'to', 'from', 'id', 'body', 'subject', 'thread', 'parent_thread', 'mucroom', 'mucnick']) - sub_interfaces = set(['body', 'subject', 'thread']) + sub_interfaces = {'body', 'subject', 'thread'} lang_interfaces = sub_interfaces - types = set(['normal', 'chat', 'headline', 'error', 'groupchat']) + types = {'normal', 'chat', 'headline', 'error', 'groupchat'} def __init__(self, *args, **kwargs): """ diff --git a/slixmpp/stanza/presence.py b/slixmpp/stanza/presence.py index 517e73c1..94382bce 100644 --- a/slixmpp/stanza/presence.py +++ b/slixmpp/stanza/presence.py @@ -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): """ |