summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2022-07-24 00:42:19 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2022-07-24 00:42:19 (GMT)
commit6625bc4df0c557d3faf8414f8b4aa6c232a2d03b (patch)
treee8236c96c3a4a67234b882348f52db374877aa80
parent69bb077b5069735a200c6c94b3e71d7e8deedfc2 (diff)
downloadSCons-6625bc4df0c557d3faf8414f8b4aa6c232a2d03b.zip
SCons-6625bc4df0c557d3faf8414f8b4aa6c232a2d03b.tar.gz
SCons-6625bc4df0c557d3faf8414f8b4aa6c232a2d03b.tar.bz2
Format code via black
-rw-r--r--SCons/Tool/MSCommon/MSVC/Dispatcher.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/SCons/Tool/MSCommon/MSVC/Dispatcher.py b/SCons/Tool/MSCommon/MSVC/Dispatcher.py
index dab1e15..42b5287 100644
--- a/SCons/Tool/MSCommon/MSVC/Dispatcher.py
+++ b/SCons/Tool/MSCommon/MSVC/Dispatcher.py
@@ -50,16 +50,18 @@ from ..common import (
debug,
)
-
_refs = []
+
def register_modulename(modname):
module = sys.modules[modname]
_refs.append(module)
+
def register_class(ref):
_refs.append(ref)
+
def reset():
debug('')
for ref in _refs:
@@ -70,6 +72,7 @@ def reset():
func = getattr(ref, method)
func()
+
def verify():
debug('')
for ref in _refs:
@@ -79,4 +82,3 @@ def verify():
debug('call %s.%s()', ref.__name__, method)
func = getattr(ref, method)
func()
-