summaryrefslogtreecommitdiff
path: root/slixmpp/features
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-10-22 13:20:10 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-10-22 13:21:41 +0100
commit1038f656eb1f766983a5869611daab447817a6ac (patch)
treef420c11c601f99ab9dfc89f55bd1607d8d13f44f /slixmpp/features
parent3c7236fe73d5fc966a6493f560634c71480aab20 (diff)
downloadslixmpp-1038f656eb1f766983a5869611daab447817a6ac.tar.gz
slixmpp-1038f656eb1f766983a5869611daab447817a6ac.tar.bz2
slixmpp-1038f656eb1f766983a5869611daab447817a6ac.tar.xz
slixmpp-1038f656eb1f766983a5869611daab447817a6ac.zip
sed -i 's/set((\(.*\),))$/{\1}/g' **/*.py
Diffstat (limited to 'slixmpp/features')
-rw-r--r--slixmpp/features/feature_mechanisms/stanza/challenge.py2
-rw-r--r--slixmpp/features/feature_mechanisms/stanza/failure.py2
-rw-r--r--slixmpp/features/feature_mechanisms/stanza/response.py2
-rw-r--r--slixmpp/features/feature_starttls/stanza.py2
4 files changed, 4 insertions, 4 deletions
diff --git a/slixmpp/features/feature_mechanisms/stanza/challenge.py b/slixmpp/features/feature_mechanisms/stanza/challenge.py
index 21a061ee..7fa76e18 100644
--- a/slixmpp/features/feature_mechanisms/stanza/challenge.py
+++ b/slixmpp/features/feature_mechanisms/stanza/challenge.py
@@ -19,7 +19,7 @@ class Challenge(StanzaBase):
name = 'challenge'
namespace = 'urn:ietf:params:xml:ns:xmpp-sasl'
- interfaces = set(('value',))
+ interfaces = {'value'}
plugin_attrib = name
def setup(self, xml):
diff --git a/slixmpp/features/feature_mechanisms/stanza/failure.py b/slixmpp/features/feature_mechanisms/stanza/failure.py
index cc0ac877..29f0a343 100644
--- a/slixmpp/features/feature_mechanisms/stanza/failure.py
+++ b/slixmpp/features/feature_mechanisms/stanza/failure.py
@@ -18,7 +18,7 @@ class Failure(StanzaBase):
namespace = 'urn:ietf:params:xml:ns:xmpp-sasl'
interfaces = set(('condition', 'text'))
plugin_attrib = name
- sub_interfaces = set(('text',))
+ sub_interfaces = {'text'}
conditions = set(('aborted', 'account-disabled', 'credentials-expired',
'encryption-required', 'incorrect-encoding', 'invalid-authzid',
'invalid-mechanism', 'malformed-request', 'mechansism-too-weak',
diff --git a/slixmpp/features/feature_mechanisms/stanza/response.py b/slixmpp/features/feature_mechanisms/stanza/response.py
index 8da236ba..b25a0592 100644
--- a/slixmpp/features/feature_mechanisms/stanza/response.py
+++ b/slixmpp/features/feature_mechanisms/stanza/response.py
@@ -19,7 +19,7 @@ class Response(StanzaBase):
name = 'response'
namespace = 'urn:ietf:params:xml:ns:xmpp-sasl'
- interfaces = set(('value',))
+ interfaces = {'value'}
plugin_attrib = name
def setup(self, xml):
diff --git a/slixmpp/features/feature_starttls/stanza.py b/slixmpp/features/feature_starttls/stanza.py
index df50897e..ba58d93e 100644
--- a/slixmpp/features/feature_starttls/stanza.py
+++ b/slixmpp/features/feature_starttls/stanza.py
@@ -16,7 +16,7 @@ class STARTTLS(ElementBase):
name = 'starttls'
namespace = 'urn:ietf:params:xml:ns:xmpp-tls'
- interfaces = set(('required',))
+ interfaces = {'required'}
plugin_attrib = name
def get_required(self):