diff options
author | William Deegan <bill@baddogconsulting.com> | 2022-07-24 00:59:01 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2022-07-24 00:59:01 (GMT) |
commit | eebf3b6e436f9d39246fc106f225d421415105a1 (patch) | |
tree | f15d2bac64642e4de0b7f082845791eea4116c98 /SCons/Tool/MSCommon | |
parent | 3b79d4342918f4d27cf86d239ac3f82d12ca0bc5 (diff) | |
download | SCons-eebf3b6e436f9d39246fc106f225d421415105a1.zip SCons-eebf3b6e436f9d39246fc106f225d421415105a1.tar.gz SCons-eebf3b6e436f9d39246fc106f225d421415105a1.tar.bz2 |
fix variable names which were shadowing global/module symbols
Diffstat (limited to 'SCons/Tool/MSCommon')
-rw-r--r-- | SCons/Tool/MSCommon/MSVC/PolicyTests.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/SCons/Tool/MSCommon/MSVC/PolicyTests.py b/SCons/Tool/MSCommon/MSVC/PolicyTests.py index faa0f78..013fd47 100644 --- a/SCons/Tool/MSCommon/MSVC/PolicyTests.py +++ b/SCons/Tool/MSCommon/MSVC/PolicyTests.py @@ -46,15 +46,15 @@ class PolicyTests(unittest.TestCase): def setUp(self): self.warnstack = [] - def push_warning_as_exception(self, Warning): - SCons.Warnings.enableWarningClass(Warning) + def push_warning_as_exception(self, warning_class): + SCons.Warnings.enableWarningClass(warning_class) prev_state = SCons.Warnings.warningAsException() - self.warnstack.append((Warning, prev_state)) + self.warnstack.append((warning_class, prev_state)) def pop_warning_as_exception(self): - Warning, prev_state = self.warnstack.pop() + warning_class, prev_state = self.warnstack.pop() SCons.Warnings.warningAsException(prev_state) - SCons.Warnings.suppressWarningClass(Warning) + SCons.Warnings.suppressWarningClass(warning_class) # msvc_set_notfound_policy, msvc_get_notfound_policy, and MSVC_NOTFOUND_POLICY |