Update gyp_packager to support earlier version of python

"{} {}" formatting in python is introduced in version 2.7. Replaced
with "{0} {1}" to support python 2.6 and below.

Change-Id: Ic20fdc5fce554a5a5cb57383d5587581f70de598
This commit is contained in:
KongQun Yang 2014-06-23 15:25:51 -07:00
parent 4519dda07c
commit 5d5750b405
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ if __name__ == '__main__':
else "") else "")
for key in _DEFAULT_DEFINES: for key in _DEFAULT_DEFINES:
if key not in gyp_defines: if key not in gyp_defines:
gyp_defines += " {}={}".format(key, _DEFAULT_DEFINES[key]) gyp_defines += " {0}={1}".format(key, _DEFAULT_DEFINES[key])
os.environ['GYP_DEFINES'] = gyp_defines.strip() os.environ['GYP_DEFINES'] = gyp_defines.strip()
# There shouldn't be a circular dependency relationship between .gyp files, # There shouldn't be a circular dependency relationship between .gyp files,