Przeglądaj źródła

Merge pull request #337 from xfguo/ignore-pep274

Remove unsupport syntex for python 2.6.
Bernard Xiong 10 lat temu
rodzic
commit
84e4fde774
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      tools/building.py

+ 1 - 1
tools/building.py

@@ -29,7 +29,7 @@ class Win32Spawn:
         cmdline = cmd + " " + newargs
         cmdline = cmd + " " + newargs
 
 
         # Make sure the env is constructed by strings
         # 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
         # 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
         # the executables. So we have to modify our own PATH to make Popen