Fix ValueError when line has more than one '='.

This commit is contained in:
Rodolfo Carvalho 2012-01-22 18:32:32 -02:00
parent 25f87607aa
commit 2735b680b9

View file

@ -42,7 +42,7 @@ class X_GOOGLE_TOKEN(Mechanism):
resp = conn.getresponse().read() resp = conn.getresponse().read()
data = {} data = {}
for line in resp.split(): for line in resp.split():
k, v = line.split(b'=') k, v = line.split(b'=', 1)
data[k] = v data[k] = v
except Exception as e: except Exception as e:
raise e raise e