Merge branch 'master' into develop
This commit is contained in:
commit
fb4275648c
@ -99,7 +99,7 @@ class FeatureMechanisms(BasePlugin):
|
|||||||
result[value] = creds.get('email', jid)
|
result[value] = creds.get('email', jid)
|
||||||
elif value == 'channel_binding':
|
elif value == 'channel_binding':
|
||||||
if sys.version_info >= (3, 3):
|
if sys.version_info >= (3, 3):
|
||||||
result[value] = self.xmpp.socket.channel_binding()
|
result[value] = self.xmpp.socket.get_channel_binding()
|
||||||
else:
|
else:
|
||||||
result[value] = None
|
result[value] = None
|
||||||
elif value == 'host':
|
elif value == 'host':
|
||||||
|
@ -19,6 +19,9 @@ def bytes(text):
|
|||||||
:param text: Unicode text to convert to bytes
|
:param text: Unicode text to convert to bytes
|
||||||
:rtype: bytes (Python3), str (Python2.6+)
|
:rtype: bytes (Python3), str (Python2.6+)
|
||||||
"""
|
"""
|
||||||
|
if text is None:
|
||||||
|
return b''
|
||||||
|
|
||||||
if sys.version_info < (3, 0):
|
if sys.version_info < (3, 0):
|
||||||
import __builtin__
|
import __builtin__
|
||||||
return __builtin__.bytes(text)
|
return __builtin__.bytes(text)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user