From a05dae2cedfd8e1c0f91cd8eb04f72941fbd42f7 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 fix #6859 --- 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 c61a3ef..ac19b6d 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__': -- 2.7.4