From 1038f656eb1f766983a5869611daab447817a6ac Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sat, 22 Oct 2016 13:20:10 +0100 Subject: sed -i 's/set((\(.*\),))$/{\1}/g' **/*.py --- slixmpp/features/feature_mechanisms/stanza/challenge.py | 2 +- slixmpp/features/feature_mechanisms/stanza/failure.py | 2 +- slixmpp/features/feature_mechanisms/stanza/response.py | 2 +- slixmpp/features/feature_starttls/stanza.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'slixmpp/features') 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): -- cgit v1.2.3