summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFedor Indutny <fedor.indutny@gmail.com>2014-01-13 16:51:57 +0000
committerTimothy J Fontaine <tjfontaine@gmail.com>2014-01-13 22:03:40 -0800
commita05dae2cedfd8e1c0f91cd8eb04f72941fbd42f7 (patch)
tree798f5a49ad28014d29d2f5b0b5e28ddcb5b13689
parent346b59e4a3296b92f2f00c2a697819bc56b7df71 (diff)
downloadnode-a05dae2cedfd8e1c0f91cd8eb04f72941fbd42f7.tar.gz
gyp: fix build with python 2.6
fix #6859
-rwxr-xr-xtools/gyp/pylib/gyp/mac_tool.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/gyp/pylib/gyp/mac_tool.py b/tools/gyp/pylib/gyp/mac_tool.py
index c61a3ef60..ac19b6dc8 100755
--- a/tools/gyp/pylib/gyp/mac_tool.py
+++ b/tools/gyp/pylib/gyp/mac_tool.py
@@ -503,7 +503,8 @@ class MacTool(object):
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__':