File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 66"""
77
88from __future__ import print_function
9- import six
109import pprint
1110import httplib2
1211from googleapiclient .discovery import build
1312import googleapiclient .http
1413import oauth2client .client
14+ from builtins import input
1515
1616# OAuth 2.0 scope that will be authorized.
1717# Check https://developers.google.com/drive/scopes for all available scopes.
3333flow .redirect_uri = oauth2client .client .OOB_CALLBACK_URN
3434authorize_url = flow .step1_get_authorize_url ()
3535print ('Go to the following link in your browser: ' + authorize_url )
36- # Add user input support for both Python2 and Python3
37- code = six . moves . input ('Enter verification code: ' ).strip ()
36+ # Should support both Python2 and Python3 with 'from builtins import input'
37+ code = input ('Enter verification code: ' ).strip ()
3838credentials = flow .step2_exchange (code )
3939
4040# Create an authorized Drive API client.
You can’t perform that action at this time.
0 commit comments