Skip to content
Myr

Use json method

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Use json method of response.Response

authored by Tommaso Allevi · committed by Tommaso Allevi · parent b2971ec · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:examples/persona/persona.py+1 added-1 removed
36 unmodified lines
37 'assertion': request.form['assertion'],38 'audience': request.host_url,39 }, verify=True)40 if resp.ok:41 verification_data = json.loads(resp.content)41 verification_data = resp.json()42 if verification_data['status'] == 'okay':43 session['email'] = verification_data['email']44 return 'OK'45
14 unmodified lines