summaryrefslogtreecommitdiff
path: root/slixmpp/plugins/xep_0004/stanza/field.py
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-10-22 13:35:54 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-10-22 13:35:54 +0100
commitf4683546d942f8e7ce3e31d40a8c51a1b73ebda5 (patch)
tree9239608ac4ab572489d31065c00ff9aa663bb7f9 /slixmpp/plugins/xep_0004/stanza/field.py
parentdcacc7d7d50d3f720cb14f1382c6d4f5a13664a4 (diff)
downloadslixmpp-compiler.tar.gz
slixmpp-compiler.tar.bz2
slixmpp-compiler.tar.xz
slixmpp-compiler.zip
Manual cleanup of the remaining set([…]) and set((…)).compiler
Diffstat (limited to 'slixmpp/plugins/xep_0004/stanza/field.py')
-rw-r--r--slixmpp/plugins/xep_0004/stanza/field.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/slixmpp/plugins/xep_0004/stanza/field.py b/slixmpp/plugins/xep_0004/stanza/field.py
index 2eebbe6f..c186157d 100644
--- a/slixmpp/plugins/xep_0004/stanza/field.py
+++ b/slixmpp/plugins/xep_0004/stanza/field.py
@@ -14,21 +14,21 @@ class FormField(ElementBase):
name = 'field'
plugin_attrib = 'field'
plugin_multi_attrib = 'fields'
- interfaces = set(('answer', 'desc', 'required', 'value',
- 'label', 'type', 'var'))
+ interfaces = {'answer', 'desc', 'required', 'value',
+ 'label', 'type', 'var'}
sub_interfaces = {'desc'}
plugin_tag_map = {}
plugin_attrib_map = {}
- field_types = set(('boolean', 'fixed', 'hidden', 'jid-multi',
- 'jid-single', 'list-multi', 'list-single',
- 'text-multi', 'text-private', 'text-single'))
+ field_types = {'boolean', 'fixed', 'hidden', 'jid-multi',
+ 'jid-single', 'list-multi', 'list-single',
+ 'text-multi', 'text-private', 'text-single'}
true_values = {True, '1', 'true'}
option_types = {'list-multi', 'list-single'}
multi_line_types = {'hidden', 'text-multi'}
- multi_value_types = set(('hidden', 'jid-multi',
- 'list-multi', 'text-multi'))
+ multi_value_types = {'hidden', 'jid-multi',
+ 'list-multi', 'text-multi'}
def setup(self, xml=None):
if ElementBase.setup(self, xml):