summaryrefslogtreecommitdiff
path: root/sleekxmpp/thirdparty/suelta
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-01-07 00:19:08 -0500
committerLance Stout <lancestout@gmail.com>2012-01-07 00:19:08 -0500
commit6b9a55e62d04d334cde2d90d19dad8dc4919c0b5 (patch)
tree60bd7c9f786da473a364586fe37a44e254341bcf /sleekxmpp/thirdparty/suelta
parentc578ddeb1aae6fb0a9f60092b53831c1e952058d (diff)
downloadslixmpp-6b9a55e62d04d334cde2d90d19dad8dc4919c0b5.tar.gz
slixmpp-6b9a55e62d04d334cde2d90d19dad8dc4919c0b5.tar.bz2
slixmpp-6b9a55e62d04d334cde2d90d19dad8dc4919c0b5.tar.xz
slixmpp-6b9a55e62d04d334cde2d90d19dad8dc4919c0b5.zip
Sync with Suelta.
Diffstat (limited to 'sleekxmpp/thirdparty/suelta')
-rw-r--r--sleekxmpp/thirdparty/suelta/mechanisms/messenger_oauth2.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/sleekxmpp/thirdparty/suelta/mechanisms/messenger_oauth2.py b/sleekxmpp/thirdparty/suelta/mechanisms/messenger_oauth2.py
index c72bc0e3..f5b0ddec 100644
--- a/sleekxmpp/thirdparty/suelta/mechanisms/messenger_oauth2.py
+++ b/sleekxmpp/thirdparty/suelta/mechanisms/messenger_oauth2.py
@@ -1,6 +1,5 @@
-from sleekxmpp.thirdparty.suelta.util import hash, bytes
+from sleekxmpp.thirdparty.suelta.util import bytes
from sleekxmpp.thirdparty.suelta.sasl import Mechanism, register_mechanism
-from sleekxmpp.thirdparty.suelta.exceptions import SASLError, SASLCancelled
class X_MESSENGER_OAUTH2(Mechanism):
@@ -10,7 +9,7 @@ class X_MESSENGER_OAUTH2(Mechanism):
self.check_values(['access_token'])
def process(self, challenge=None):
- return self.values['access_token']
+ return bytes(self.values['access_token'])
def okay(self):
return True