diff options
author | Mats Wichmann <mats@linux.com> | 2021-06-28 19:34:08 (GMT) |
---|---|---|
committer | Mats Wichmann <mats@linux.com> | 2021-10-04 14:12:20 (GMT) |
commit | 0e6d1a5186f034ff590965dcb2b3df63172f041a (patch) | |
tree | 529b2eac34ffe6d8e1bcc2c9f3ec2fae91e337c9 /SCons/Scanner/Python.py | |
parent | 43fc70a9da8b082b8325f657c1a01669de265ba1 (diff) | |
download | SCons-0e6d1a5186f034ff590965dcb2b3df63172f041a.zip SCons-0e6d1a5186f034ff590965dcb2b3df63172f041a.tar.gz SCons-0e6d1a5186f034ff590965dcb2b3df63172f041a.tar.bz2 |
Change SCons.Scanner.Base to ScannerBase
Maintenance: SCons has multiple classes named Base, which is a bit
unfortunate. Some already use a context-qualified name, like BuilderBase,
which seems preferable. Do that for ScannerBase, but leave the name Base
in the SCons.Scanner package in case *external* users are depending on
SCons.Scanner.Base working. SCons internally no longer uses that name.
Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'SCons/Scanner/Python.py')
-rw-r--r-- | SCons/Scanner/Python.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/SCons/Scanner/Python.py b/SCons/Scanner/Python.py index ba2fd5a..e20d782 100644 --- a/SCons/Scanner/Python.py +++ b/SCons/Scanner/Python.py @@ -38,7 +38,7 @@ import re import SCons.Node.FS import SCons.Util -from . import Base +from . import ScannerBase # Capture python "from a import b" and "import a" statements. from_cre = re.compile(r'^\s*from\s+([^\s]+)\s+import\s+(.*)', re.M) @@ -201,7 +201,7 @@ def scan(node, env, path=()): PythonSuffixes = ['.py'] -PythonScanner = Base( +PythonScanner = ScannerBase( scan, name='PythonScanner', skeys=PythonSuffixes, |