Browse files

Merge pull request #946 from allevo/master

Use json method of requests.Response
  • Loading branch information...
2 parents 58b4fc2 + b81b040 commit 4d9916e1a6e26e33ce2360f1d7ee41d95b79d995 @mitsuhiko mitsuhiko committed Feb 8, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 examples/persona/persona.py
View
4 examples/persona/persona.py
@@ -1,4 +1,4 @@
-from flask import Flask, render_template, session, request, json, abort, g
+from flask import Flask, render_template, session, request, abort, g
import requests
@@ -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'

0 comments on commit 4d9916e

Please sign in to comment.