diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2016-10-22 13:35:54 +0100 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2016-10-22 13:37:46 +0100 |
commit | d008988843f61efb57cb06a30b8a47a357e248a4 (patch) | |
tree | e1bd486fd53639561f5af179451f846e371b570c /slixmpp/stanza/error.py | |
parent | dcacc7d7d50d3f720cb14f1382c6d4f5a13664a4 (diff) | |
download | slixmpp-d008988843f61efb57cb06a30b8a47a357e248a4.tar.gz slixmpp-d008988843f61efb57cb06a30b8a47a357e248a4.tar.bz2 slixmpp-d008988843f61efb57cb06a30b8a47a357e248a4.tar.xz slixmpp-d008988843f61efb57cb06a30b8a47a357e248a4.zip |
Manual cleanup of the remaining set([…]) and set((…)).
Diffstat (limited to 'slixmpp/stanza/error.py')
-rw-r--r-- | slixmpp/stanza/error.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/slixmpp/stanza/error.py b/slixmpp/stanza/error.py index 145aaa24..132ffc4d 100644 --- a/slixmpp/stanza/error.py +++ b/slixmpp/stanza/error.py @@ -51,20 +51,20 @@ class Error(ElementBase): namespace = 'jabber:client' name = 'error' plugin_attrib = 'error' - interfaces = set(('code', 'condition', 'text', 'type', - 'gone', 'redirect', 'by')) + interfaces = {'code', 'condition', 'text', 'type', + 'gone', 'redirect', 'by'} sub_interfaces = {'text'} plugin_attrib_map = {} plugin_tag_map = {} - conditions = set(('bad-request', 'conflict', 'feature-not-implemented', - 'forbidden', 'gone', 'internal-server-error', - 'item-not-found', 'jid-malformed', 'not-acceptable', - 'not-allowed', 'not-authorized', 'payment-required', - 'recipient-unavailable', 'redirect', - 'registration-required', 'remote-server-not-found', - 'remote-server-timeout', 'resource-constraint', - 'service-unavailable', 'subscription-required', - 'undefined-condition', 'unexpected-request')) + conditions = {'bad-request', 'conflict', 'feature-not-implemented', + 'forbidden', 'gone', 'internal-server-error', + 'item-not-found', 'jid-malformed', 'not-acceptable', + 'not-allowed', 'not-authorized', 'payment-required', + 'recipient-unavailable', 'redirect', + 'registration-required', 'remote-server-not-found', + 'remote-server-timeout', 'resource-constraint', + 'service-unavailable', 'subscription-required', + 'undefined-condition', 'unexpected-request'} condition_ns = 'urn:ietf:params:xml:ns:xmpp-stanzas' types = {'cancel', 'continue', 'modify', 'auth', 'wait'} |