From: gregnoel Date: Thu, 25 Mar 2010 06:18:29 +0000 (+0000) Subject: http://scons.tigris.org/issues/show_bug.cgi?id=2341 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c4cd35543072935e8e693ca8a4a9314d8784e419;p=scons.git scons.tigris.org/issues/show_bug.cgi?id=2341 Wrap a zip() expression in list(). http://scons.tigris.org/issues/show_bug.cgi?id=2342 Remove the 'L' from 'long' variables (no longer needed). git-svn-id: http://scons.tigris.org/svn/scons/trunk@4731 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/src/engine/SCons/Util.py b/src/engine/SCons/Util.py index 709cf1f0..a373863d 100644 --- a/src/engine/SCons/Util.py +++ b/src/engine/SCons/Util.py @@ -1082,7 +1082,7 @@ class OrderedDict(UserDict): return dict def items(self): - return zip(self._keys, self.values()) + return list(zip(self._keys, self.values())) def keys(self): return self._keys[:] diff --git a/src/engine/SCons/compat/_scons_subprocess.py b/src/engine/SCons/compat/_scons_subprocess.py index ccd403a7..417dd609 100644 --- a/src/engine/SCons/compat/_scons_subprocess.py +++ b/src/engine/SCons/compat/_scons_subprocess.py @@ -820,7 +820,7 @@ class Popen(object): startupinfo.wShowWindow = SW_HIDE comspec = os.environ.get("COMSPEC", "cmd.exe") args = comspec + " /c " + args - if (GetVersion() >= 0x80000000L or + if (GetVersion() >= 0x80000000 or os.path.basename(comspec).lower() == "command.com"): # Win9x, or using command.com on NT. We need to # use the w9xpopen intermediate program. For more diff --git a/src/engine/SCons/cpp.py b/src/engine/SCons/cpp.py index 4a826ba7..5ccc00e1 100644 --- a/src/engine/SCons/cpp.py +++ b/src/engine/SCons/cpp.py @@ -151,7 +151,7 @@ CPP_to_Python_Eval_List = [ ['/\*.*\*/', ''], ['/\*.*', ''], ['//.*', ''], - ['(0x[0-9A-Fa-f]*)[UL]+', '\\1L'], + ['(0x[0-9A-Fa-f]*)[UL]+', '\\1'], ] # Replace the string representations of the regular expressions in the