From ee2085539d98495c7cd237bd115baac89903afd1 Mon Sep 17 00:00:00 2001 From: George Schizas Date: Thu, 30 Dec 2021 23:48:09 +0200 Subject: [PATCH] Update documentation for Python 3 (#435) * Update documentation for Python 3 Given that Python 2 is out of support, the documenation examples should probably use Python 3 syntax (i.e. print as a function, input instead of raw_input) instead of Python 2 syntax. * whitespace change Co-authored-by: jtroussard --- docs/examples/outlook.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/examples/outlook.rst b/docs/examples/outlook.rst index 850841f..d038d17 100644 --- a/docs/examples/outlook.rst +++ b/docs/examples/outlook.rst @@ -24,14 +24,14 @@ a callback URL then you can try out the command line interactive example below. >>> # Redirect the user owner to the OAuth provider (i.e. Outlook) using an URL with a few key OAuth parameters. >>> authorization_url, state = outlook.authorization_url(authorization_base_url) - >>> print 'Please go here and authorize,', authorization_url + >>> print('Please go here and authorize,', authorization_url) >>> # Get the authorization verifier code from the callback url - >>> redirect_response = raw_input('Paste the full redirect URL here:') + >>> redirect_response = input('Paste the full redirect URL here:') >>> # Fetch the access token - >>> token = outlook.fetch_token(token_url,client_secret=client_secret,authorization_response=redirect_response) + >>> token = outlook.fetch_token(token_url, client_secret=client_secret, authorization_response=redirect_response) >>> # Fetch a protected resource, i.e. calendar information >>> o = outlook.get('https://outlook.office.com/api/v1.0/me/calendars') - >>> print o.content + >>> print(o.content)