From dcacc7d7d50d3f720cb14f1382c6d4f5a13664a4 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sat, 22 Oct 2016 13:21:06 +0100 Subject: sed -i 's/set(\[\(.*\)\])$/{\1}/g' **/*.py --- slixmpp/features/feature_mechanisms/stanza/auth.py | 2 +- slixmpp/features/feature_mechanisms/stanza/success.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'slixmpp/features/feature_mechanisms') diff --git a/slixmpp/features/feature_mechanisms/stanza/auth.py b/slixmpp/features/feature_mechanisms/stanza/auth.py index e024ef22..48f0cf81 100644 --- a/slixmpp/features/feature_mechanisms/stanza/auth.py +++ b/slixmpp/features/feature_mechanisms/stanza/auth.py @@ -24,7 +24,7 @@ class Auth(StanzaBase): #: Some SASL mechs require sending values as is, #: without converting base64. - plain_mechs = set(['X-MESSENGER-OAUTH2']) + plain_mechs = {'X-MESSENGER-OAUTH2'} def setup(self, xml): StanzaBase.setup(self, xml) diff --git a/slixmpp/features/feature_mechanisms/stanza/success.py b/slixmpp/features/feature_mechanisms/stanza/success.py index f7cde0f8..70be1780 100644 --- a/slixmpp/features/feature_mechanisms/stanza/success.py +++ b/slixmpp/features/feature_mechanisms/stanza/success.py @@ -18,7 +18,7 @@ class Success(StanzaBase): name = 'success' namespace = 'urn:ietf:params:xml:ns:xmpp-sasl' - interfaces = set(['value']) + interfaces = {'value'} plugin_attrib = name def setup(self, xml): -- cgit v1.2.3