Explorar el Código

Merge pull request #337 from xfguo/ignore-pep274

Remove unsupport syntex for python 2.6.
Bernard Xiong hace 11 años
padre
commit
84e4fde774
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      tools/building.py

+ 1 - 1
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