From 15f058f6091d338cd26c76d47b19ad5bd21214ba Mon Sep 17 00:00:00 2001 From: Fedor Indutny Date: Mon, 13 Jan 2014 16:51:57 +0000 Subject: [PATCH] gyp: fix build with python 2.6 Fixes: https://github.com/joyent/node/issues/6859 PR-URL: https://github.com/iojs/io.js/pull/1325 Reviewed-By: Fedor Indutny Reviewed-By: Ben Noordhuis Reviewed-By: Shigeki Ohtsu --- tools/gyp/pylib/gyp/mac_tool.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/gyp/pylib/gyp/mac_tool.py b/tools/gyp/pylib/gyp/mac_tool.py index eeeaceb0c7aa23..366439a062d36b 100755 --- a/tools/gyp/pylib/gyp/mac_tool.py +++ b/tools/gyp/pylib/gyp/mac_tool.py @@ -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__':