From f0f654537490011c9aa5bd6db91450d126e53cdf Mon Sep 17 00:00:00 2001 From: Tommaso Allevi Date: Sat, 11 Jan 2014 01:09:30 +0100 Subject: [PATCH] Use json method Use json method of response.Response --- examples/persona/persona.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/persona/persona.py b/examples/persona/persona.py index ff785a4f..a6e12808 100644 --- a/examples/persona/persona.py +++ b/examples/persona/persona.py @@ -38,7 +38,7 @@ def login_handler(): 'audience': request.host_url, }, verify=True) if resp.ok: - verification_data = json.loads(resp.content) + verification_data = resp.json() if verification_data['status'] == 'okay': session['email'] = verification_data['email'] return 'OK'