diff options
author | Greg Noel <GregNoel@tigris.org> | 2010-03-29 05:50:15 (GMT) |
---|---|---|
committer | Greg Noel <GregNoel@tigris.org> | 2010-03-29 05:50:15 (GMT) |
commit | 7adebb06bb6055345cc584377159d8052ea39e1b (patch) | |
tree | d0ca5f58b87d964927a1db7f4fe8a602f8405d23 /src/engine/SCons/Tool/MSCommon | |
parent | 59ed0a109bf5add2efcef459080837b11066c6fb (diff) | |
download | SCons-7adebb06bb6055345cc584377159d8052ea39e1b.zip SCons-7adebb06bb6055345cc584377159d8052ea39e1b.tar.gz SCons-7adebb06bb6055345cc584377159d8052ea39e1b.tar.bz2 |
http://scons.tigris.org/issues/show_bug.cgi?id=2345
Accumulated small fixers: renames, next, zip, and intern.
Files that were modified or added while developing on branches/pending didn't
have the fixers previously applied. This patchset picks up those.
Diffstat (limited to 'src/engine/SCons/Tool/MSCommon')
-rw-r--r-- | src/engine/SCons/Tool/MSCommon/vc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/SCons/Tool/MSCommon/vc.py b/src/engine/SCons/Tool/MSCommon/vc.py index ae5415d..b8aae84 100644 --- a/src/engine/SCons/Tool/MSCommon/vc.py +++ b/src/engine/SCons/Tool/MSCommon/vc.py @@ -36,9 +36,9 @@ __doc__ = """Module for Visual C/C++ detection and configuration. """ import SCons.compat -import string import os import platform +from string import digits as string_digits import SCons.Warnings @@ -218,7 +218,7 @@ def find_batch_file(env,msvc_version): debug('vc.py: find_batch_file() pdir:%s'%pdir) # filter out e.g. "Exp" from the version name - msvc_ver_numeric = string.join(filter(lambda x: x in string.digits + ".", msvc_version), '') + msvc_ver_numeric = ''.join([x for x in msvc_version if x in string_digits + "."]) vernum = float(msvc_ver_numeric) if 7 <= vernum < 8: pdir = os.path.join(pdir, os.pardir, "Common7", "Tools") |