From c1562b76b273cc7aeaaa1cf8fddd3dca2c828c4d Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sat, 31 Mar 2018 02:22:53 +0200 Subject: =?UTF-8?q?slixmpp=20is=20Python=C2=A03.4.4+,=20remove=20check=20f?= =?UTF-8?q?or=20channel=20binding.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- slixmpp/features/feature_mechanisms/mechanisms.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/slixmpp/features/feature_mechanisms/mechanisms.py b/slixmpp/features/feature_mechanisms/mechanisms.py index 33bdaff5..27877e67 100644 --- a/slixmpp/features/feature_mechanisms/mechanisms.py +++ b/slixmpp/features/feature_mechanisms/mechanisms.py @@ -97,13 +97,7 @@ class FeatureMechanisms(BasePlugin): jid = self.xmpp.requested_jid.bare result[value] = creds.get('email', jid) elif value == 'channel_binding': - if hasattr(self.xmpp.socket, 'get_channel_binding'): - result[value] = self.xmpp.socket.get_channel_binding() - else: - log.debug("Channel binding not supported.") - log.debug("Use Python 3.3+ for channel binding and " + \ - "SCRAM-SHA-1-PLUS support") - result[value] = None + result[value] = self.xmpp.socket.get_channel_binding() elif value == 'host': result[value] = creds.get('host', self.xmpp.requested_jid.domain) elif value == 'realm': -- cgit v1.2.3