From 2735b680b9163c180a3851c58d22300aea020596 Mon Sep 17 00:00:00 2001 From: Rodolfo Carvalho Date: Sun, 22 Jan 2012 18:32:32 -0200 Subject: Fix ValueError when line has more than one '='. --- sleekxmpp/thirdparty/suelta/mechanisms/google_token.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sleekxmpp/thirdparty') 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 -- cgit v1.2.3