Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Use json method #945

Closed
wants to merge 1 commit into from

1 participant

@allevo

Use json method of response.Response

@allevo allevo Use json method
Use json method of response.Response
f0f6545
@allevo allevo closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 11, 2014
  1. @allevo

    Use json method

    allevo authored
    Use json method of response.Response
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  examples/persona/persona.py
View
2  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'
Something went wrong with that request. Please try again.