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/plugins/xep_0107 | |
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/plugins/xep_0107')
-rw-r--r-- | slixmpp/plugins/xep_0107/stanza.py | 4 | ||||
-rw-r--r-- | slixmpp/plugins/xep_0107/user_mood.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/slixmpp/plugins/xep_0107/stanza.py b/slixmpp/plugins/xep_0107/stanza.py index 05967de9..ea5a799a 100644 --- a/slixmpp/plugins/xep_0107/stanza.py +++ b/slixmpp/plugins/xep_0107/stanza.py @@ -14,8 +14,8 @@ class UserMood(ElementBase): name = 'mood' namespace = 'http://jabber.org/protocol/mood' plugin_attrib = 'mood' - interfaces = set(['value', 'text']) - sub_interfaces = set(['text']) + interfaces = {'value', 'text'} + sub_interfaces = {'text'} moods = set(['afraid', 'amazed', 'amorous', 'angry', 'annoyed', 'anxious', 'aroused', 'ashamed', 'bored', 'brave', 'calm', 'cautious', 'cold', 'confident', 'confused', 'contemplative', 'contented', diff --git a/slixmpp/plugins/xep_0107/user_mood.py b/slixmpp/plugins/xep_0107/user_mood.py index c56d15fa..c745671f 100644 --- a/slixmpp/plugins/xep_0107/user_mood.py +++ b/slixmpp/plugins/xep_0107/user_mood.py @@ -27,7 +27,7 @@ class XEP_0107(BasePlugin): name = 'xep_0107' description = 'XEP-0107: User Mood' - dependencies = set(['xep_0163']) + dependencies = {'xep_0163'} stanza = stanza def plugin_init(self): |