aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJohn Vandenberg <jayvdb@gmail.com>2015-10-19 08:19:43 +1100
committerJohn Vandenberg <jayvdb@gmail.com>2015-10-19 08:19:43 +1100
commitd8bc10c633565bb280cc75ac71f9eb2af1b96f9c (patch)
treec0cddd2cfdae28e160f30c7bf9cd5a5854dcea31 /scripts
parentfa41e5336683367ef4be421c4657d4279f40f9c9 (diff)
downloadoauth2client-d8bc10c633565bb280cc75ac71f9eb2af1b96f9c.tar.gz
Python 3 compatible use of print function
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/fetch_gae_sdk.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/fetch_gae_sdk.py b/scripts/fetch_gae_sdk.py
index 8ae1f99..49d380a 100755
--- a/scripts/fetch_gae_sdk.py
+++ b/scripts/fetch_gae_sdk.py
@@ -7,6 +7,7 @@ Usage:
Current releases are listed here:
https://www.googleapis.com/storage/v1/b/appengine-sdks/o?prefix=featured
"""
+from __future__ import print_function
import json
import os
@@ -60,7 +61,7 @@ def main(argv):
sdk_versions = get_gae_versions()
if not sdk_versions:
- print 'Error fetching GAE SDK version info'
+ print('Error fetching GAE SDK version info')
return 1
sdk_urls = get_sdk_urls(sdk_versions)
for sdk_url in sdk_urls:
@@ -70,14 +71,14 @@ def main(argv):
except:
pass
else:
- print 'Could not read SDK from any of ', sdk_urls
+ print('Could not read SDK from any of ', sdk_urls)
return 1
sdk_contents.seek(0)
try:
zip_contents = zipfile.ZipFile(sdk_contents)
zip_contents.extractall(dest_dir)
except:
- print 'Error extracting SDK contents'
+ print('Error extracting SDK contents')
return 1