Skip to content

Commit

Permalink
gyp: fix build with python 2.6
Browse files Browse the repository at this point in the history
Fixes: nodejs/node-v0.x-archive#6859
PR-URL: #1325
Reviewed-By: Fedor Indutny <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Shigeki Ohtsu <[email protected]>
  • Loading branch information
indutny authored and Shigeki Ohtsu committed Apr 4, 2015
1 parent 21f4fb6 commit 15f058f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/gyp/pylib/gyp/mac_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,8 @@ def _ExpandVariables(self, data, substitutions):
if isinstance(data, list):
return [self._ExpandVariables(v, substitutions) for v in data]
if isinstance(data, dict):
return {k: self._ExpandVariables(data[k], substitutions) for k in data}
return dict((k, self._ExpandVariables(data[k],
substitutions)) for k in data)
return data

if __name__ == '__main__':
Expand Down

0 comments on commit 15f058f

Please sign in to comment.