Revert revision 4742. How hard is it to understand "No bugfixes in 2.0"?
authorgregnoel <gregnoel@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Wed, 31 Mar 2010 06:40:58 +0000 (06:40 +0000)
committergregnoel <gregnoel@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Wed, 31 Mar 2010 06:40:58 +0000 (06:40 +0000)
This fix should be in 2.0.1, which will mirror the changes in 1.3.1.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4747 fdb21ef1-2011-0410-befe-b5e4ea1792b1

src/engine/SCons/Tool/MSCommon/vc.py

index 55171f5cdc756b45491ce653a6b57696727219ad..b8aae84282e3d1493d4b99c61c8b0ce622304cda 100644 (file)
@@ -138,10 +138,7 @@ _VCVER_TO_PRODUCT_DIR = {
 }
 
 def msvc_version_to_maj_min(msvc_version):
-    
-    msvc_ver_numeric = string.join(filter(lambda x: x in string.digits + ".", msvc_version), '')
-    
-    t = msvc_version_numeric.split(".")
+    t = msvc_version.split(".")
     if not len(t) == 2:
         raise ValueError("Unrecognized version %s" % msvc_version)
     try: