Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/SCons/scons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2022-07-24 03:59:01 +0300
committerWilliam Deegan <bill@baddogconsulting.com>2022-07-24 03:59:01 +0300
commiteebf3b6e436f9d39246fc106f225d421415105a1 (patch)
treef15d2bac64642e4de0b7f082845791eea4116c98
parent3b79d4342918f4d27cf86d239ac3f82d12ca0bc5 (diff)
fix variable names which were shadowing global/module symbols
-rw-r--r--SCons/Tool/MSCommon/MSVC/PolicyTests.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/SCons/Tool/MSCommon/MSVC/PolicyTests.py b/SCons/Tool/MSCommon/MSVC/PolicyTests.py
index faa0f786e..013fd477d 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