Skip to content

Commit 4c2120d

Browse files
committed
Fix last python2 changes
1 parent 12a171a commit 4c2120d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

drive/driveapp/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
flow.redirect_uri = oauth2client.client.OOB_CALLBACK_URN
3333
authorize_url = flow.step1_get_authorize_url()
3434
print('Go to the following link in your browser: ' + authorize_url)
35-
code = raw_input('Enter verification code: ').strip()
35+
code = input('Enter verification code: ').strip()
3636
credentials = flow.step2_exchange(code)
3737

3838
# Create an authorized Drive API client.

slides/quickstart/quickstart.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
.execute()
3838
slides = presentation.get('slides')
3939

40-
print ('The presentation contains {} slides:'.format(len(slides)))
40+
print('The presentation contains {} slides:'.format(len(slides)))
4141
for i, slide in enumerate(slides):
4242
print('- Slide #{} contains {} elements.' \
4343
.format(i + 1, len(slide.get('pageElements'))))

0 commit comments

Comments
 (0)