Skip to content

Commit fa41e53

Browse files
committed
Python 2.6 compatible use of str.format
Python 2.6 str.format does not support unindexed parameters.
1 parent 237e5d1 commit fa41e53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/fetch_gae_sdk.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ def get_sdk_urls(sdk_versions):
4848

4949
def main(argv):
5050
if len(argv) > 2:
51-
print 'Usage: {} [<destination_dir>]'.format(argv[0])
51+
print('Usage: {0} [<destination_dir>]'.format(argv[0]))
5252
return 1
5353
dest_dir = argv[1] if len(argv) > 1 else '.'
5454
if not os.path.exists(dest_dir):
5555
os.makedirs(dest_dir)
5656

5757
if os.path.exists(os.path.join(dest_dir, 'google_appengine')):
58-
print 'GAE SDK already installed at {}, exiting.'.format(dest_dir)
58+
print('GAE SDK already installed at {0}, exiting.'.format(dest_dir))
5959
return 0
6060

6161
sdk_versions = get_gae_versions()

0 commit comments

Comments
 (0)