diff options
| author | Xiongfei Guo <[email protected]> | 2014-09-06 14:33:46 +0800 |
|---|---|---|
| committer | Xiongfei Guo <[email protected]> | 2014-09-06 14:33:46 +0800 |
| commit | a1beec4ad3976367905b9f5f8bb1309a0dae42b8 (patch) | |
| tree | af05aaa6c2a5f47784e7a81595d248346c90d351 /tools | |
| parent | ddd51caf62299b11e1a8826a0a67149a39142e64 (diff) | |
Remove unsupport syntex for python 2.6.
Dict Comprehensions is imported in Python 2.7 & 3.0 which is PEP 274 [1]. Some
OS like CentOS 6 which is use Python 2.6 cannot support this syntex.
[1] http://legacy.python.org/dev/peps/pep-0274/
Signed-off-by: Xiongfei Guo <[email protected]>
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/building.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/building.py b/tools/building.py index ad5df12bcc..caa48d96ae 100644 --- a/tools/building.py +++ b/tools/building.py @@ -29,7 +29,7 @@ class Win32Spawn: cmdline = cmd + " " + newargs # Make sure the env is constructed by strings - _e = {k: str(v) for k, v in env.items()} + _e = dict([(k, str(v)) for k, v in env.items()]) # Windows(tm) CreateProcess does not use the env passed to it to find # the executables. So we have to modify our own PATH to make Popen |
