summaryrefslogtreecommitdiff
path: root/sleekxmpp/thirdparty/suelta/mechanisms/google_token.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-01-23 10:53:19 -0800
committerLance Stout <lancestout@gmail.com>2012-01-23 10:53:19 -0800
commitf06589c9132be151813e375b849c71be541f9439 (patch)
tree4b04127811164d610bd1ad6d5386b65c00566abc /sleekxmpp/thirdparty/suelta/mechanisms/google_token.py
parent25f87607aab0de024be90d6e6d0e96c19e827f49 (diff)
parent2735b680b9163c180a3851c58d22300aea020596 (diff)
downloadslixmpp-f06589c9132be151813e375b849c71be541f9439.tar.gz
slixmpp-f06589c9132be151813e375b849c71be541f9439.tar.bz2
slixmpp-f06589c9132be151813e375b849c71be541f9439.tar.xz
slixmpp-f06589c9132be151813e375b849c71be541f9439.zip
Merge pull request #140 from rhcarvalho/patch-3
Fix ValueError when line has more than one '='.
Diffstat (limited to 'sleekxmpp/thirdparty/suelta/mechanisms/google_token.py')
-rw-r--r--sleekxmpp/thirdparty/suelta/mechanisms/google_token.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/thirdparty/suelta/mechanisms/google_token.py b/sleekxmpp/thirdparty/suelta/mechanisms/google_token.py
index 75c55f18..19d1b5a3 100644
--- a/sleekxmpp/thirdparty/suelta/mechanisms/google_token.py
+++ b/sleekxmpp/thirdparty/suelta/mechanisms/google_token.py
@@ -42,7 +42,7 @@ class X_GOOGLE_TOKEN(Mechanism):
resp = conn.getresponse().read()
data = {}
for line in resp.split():
- k, v = line.split(b'=')
+ k, v = line.split(b'=', 1)
data[k] = v
except Exception as e:
raise e