Skip to content

Commit e5b490c

Browse files
messasingingwolfboy
authored andcommitted
Update Google example to Python 3
1 parent 36f24b4 commit e5b490c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/examples/google.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ a callback URL then you can try out the command line interactive example below.
3030
... # offline for refresh token
3131
... # force to always make user click authorize
3232
... access_type="offline", prompt="select_account")
33-
>>> print 'Please go here and authorize,', authorization_url
33+
>>> print('Please go here and authorize:', authorization_url)
3434
3535
>>> # Get the authorization verifier code from the callback url
36-
>>> redirect_response = raw_input('Paste the full redirect URL here:')
36+
>>> redirect_response = input('Paste the full redirect URL here: ')
3737
3838
>>> # Fetch the access token
3939
>>> google.fetch_token(token_url, client_secret=client_secret,
4040
... authorization_response=redirect_response)
4141
4242
>>> # Fetch a protected resource, i.e. user profile
4343
>>> r = google.get('https://www.googleapis.com/oauth2/v1/userinfo')
44-
>>> print r.content
44+
>>> print(r.content)

0 commit comments

Comments
 (0)