From c4285961df7004f6c54d6d38960c4c075d0877b6 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sat, 22 Oct 2016 13:20:27 +0100 Subject: sed -i 's/set((\(.*\)))$/{\1}/g' **/*.py --- slixmpp/features/feature_bind/stanza.py | 2 +- slixmpp/features/feature_mechanisms/stanza/auth.py | 2 +- slixmpp/features/feature_mechanisms/stanza/failure.py | 2 +- slixmpp/features/feature_mechanisms/stanza/mechanisms.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'slixmpp/features') diff --git a/slixmpp/features/feature_bind/stanza.py b/slixmpp/features/feature_bind/stanza.py index b9ecd97c..96c3e757 100644 --- a/slixmpp/features/feature_bind/stanza.py +++ b/slixmpp/features/feature_bind/stanza.py @@ -16,6 +16,6 @@ class Bind(ElementBase): name = 'bind' namespace = 'urn:ietf:params:xml:ns:xmpp-bind' - interfaces = set(('resource', 'jid')) + interfaces = {'resource', 'jid'} sub_interfaces = interfaces plugin_attrib = 'bind' diff --git a/slixmpp/features/feature_mechanisms/stanza/auth.py b/slixmpp/features/feature_mechanisms/stanza/auth.py index c32069ec..e024ef22 100644 --- a/slixmpp/features/feature_mechanisms/stanza/auth.py +++ b/slixmpp/features/feature_mechanisms/stanza/auth.py @@ -19,7 +19,7 @@ class Auth(StanzaBase): name = 'auth' namespace = 'urn:ietf:params:xml:ns:xmpp-sasl' - interfaces = set(('mechanism', 'value')) + interfaces = {'mechanism', 'value'} plugin_attrib = name #: Some SASL mechs require sending values as is, diff --git a/slixmpp/features/feature_mechanisms/stanza/failure.py b/slixmpp/features/feature_mechanisms/stanza/failure.py index 29f0a343..b4428fcc 100644 --- a/slixmpp/features/feature_mechanisms/stanza/failure.py +++ b/slixmpp/features/feature_mechanisms/stanza/failure.py @@ -16,7 +16,7 @@ class Failure(StanzaBase): name = 'failure' namespace = 'urn:ietf:params:xml:ns:xmpp-sasl' - interfaces = set(('condition', 'text')) + interfaces = {'condition', 'text'} plugin_attrib = name sub_interfaces = {'text'} conditions = set(('aborted', 'account-disabled', 'credentials-expired', diff --git a/slixmpp/features/feature_mechanisms/stanza/mechanisms.py b/slixmpp/features/feature_mechanisms/stanza/mechanisms.py index 064b8d1f..4ff15678 100644 --- a/slixmpp/features/feature_mechanisms/stanza/mechanisms.py +++ b/slixmpp/features/feature_mechanisms/stanza/mechanisms.py @@ -16,7 +16,7 @@ class Mechanisms(ElementBase): name = 'mechanisms' namespace = 'urn:ietf:params:xml:ns:xmpp-sasl' - interfaces = set(('mechanisms', 'required')) + interfaces = {'mechanisms', 'required'} plugin_attrib = name is_extension = True -- cgit v1.2.3