summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2018-12-09 19:19:52 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2018-12-09 19:19:52 (GMT)
commitad7bc570096f2dcf270b41e046332c73698031d7 (patch)
treebb46f70a58ff12df2882e4e4ce7b62fd99de498c /src/engine/SCons
parent6652dd7ad52190441e6c4fd450ea91cb81a7123b (diff)
downloadSCons-ad7bc570096f2dcf270b41e046332c73698031d7.zip
SCons-ad7bc570096f2dcf270b41e046332c73698031d7.tar.gz
SCons-ad7bc570096f2dcf270b41e046332c73698031d7.tar.bz2
minor flake8 issues resolved
Diffstat (limited to 'src/engine/SCons')
-rw-r--r--src/engine/SCons/Tool/applelink.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/SCons/Tool/applelink.py b/src/engine/SCons/Tool/applelink.py
index cb7cfb6..82ae70c 100644
--- a/src/engine/SCons/Tool/applelink.py
+++ b/src/engine/SCons/Tool/applelink.py
@@ -53,7 +53,7 @@ def _applelib_versioned_lib_suffix(env, suffix, version):
if Verbose:
print("_applelib_versioned_lib_suffix: suffix={:r}".format(suffix))
print("_applelib_versioned_lib_suffix: version={:r}".format(version))
- if not version in suffix:
+ if version not in suffix:
suffix = "." + version + suffix
if Verbose:
print("_applelib_versioned_lib_suffix: return suffix={:r}".format(suffix))
@@ -100,7 +100,7 @@ def _applelib_check_valid_version(version_string):
for (i, p) in enumerate(parts):
try:
p_i = int(p)
- except ValueError as e:
+ except ValueError:
return False, "Version component %s (from %s) is not a number"%(p, version_string)
if p_i < 0 or p_i > _applelib_max_version_values[i]:
return False, "Version component %s (from %s) is not valid value should be between 0 and %d"%(p, version_string, _applelib_max_version_values[i])