diff options
author | Lance Stout <lancestout@gmail.com> | 2012-12-03 12:42:30 -0800 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2012-12-03 12:42:30 -0800 |
commit | def34f0e4296bbba18c243a1ca34c7893763718b (patch) | |
tree | a605d66d938aa189b785c0e4cc09b5ae6af823fe /sleekxmpp/features/feature_mechanisms | |
parent | b820351f6468e6718dc75b69a0088b2433a658af (diff) | |
download | slixmpp-def34f0e4296bbba18c243a1ca34c7893763718b.tar.gz slixmpp-def34f0e4296bbba18c243a1ca34c7893763718b.tar.bz2 slixmpp-def34f0e4296bbba18c243a1ca34c7893763718b.tar.xz slixmpp-def34f0e4296bbba18c243a1ca34c7893763718b.zip |
Fix requesting channel binding from sockets that don't support it.
Diffstat (limited to 'sleekxmpp/features/feature_mechanisms')
-rw-r--r-- | sleekxmpp/features/feature_mechanisms/mechanisms.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/features/feature_mechanisms/mechanisms.py b/sleekxmpp/features/feature_mechanisms/mechanisms.py index 9f3c47f6..555d8fad 100644 --- a/sleekxmpp/features/feature_mechanisms/mechanisms.py +++ b/sleekxmpp/features/feature_mechanisms/mechanisms.py @@ -98,7 +98,7 @@ class FeatureMechanisms(BasePlugin): jid = self.xmpp.requested_jid.bare result[value] = creds.get('email', jid) elif value == 'channel_binding': - if sys.version_info >= (3, 3): + if hasattr(self.xmpp.socket, 'get_channel_binding'): result[value] = self.xmpp.socket.get_channel_binding() else: result[value] = None |