diff options
author | Mats Wichmann <mats@linux.com> | 2021-06-27 18:05:52 (GMT) |
---|---|---|
committer | Mats Wichmann <mats@linux.com> | 2021-07-24 15:05:47 (GMT) |
commit | 4ab8e0c76fb5977a23cc38ef30c15b93c6ecce75 (patch) | |
tree | 5baa8f95fbded4ed69045be84a12821aed74a662 /SCons/Scanner | |
parent | 04f17d7dc960c2fb3c4b949682d9a82b1114a1fb (diff) | |
download | SCons-4ab8e0c76fb5977a23cc38ef30c15b93c6ecce75.zip SCons-4ab8e0c76fb5977a23cc38ef30c15b93c6ecce75.tar.gz SCons-4ab8e0c76fb5977a23cc38ef30c15b93c6ecce75.tar.bz2 |
[PR #3863] Fix sider complaints
Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'SCons/Scanner')
-rw-r--r-- | SCons/Scanner/ScannerTests.py | 7 | ||||
-rw-r--r-- | SCons/Scanner/__init__.py | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/SCons/Scanner/ScannerTests.py b/SCons/Scanner/ScannerTests.py index b17ef9b..dcb5322 100644 --- a/SCons/Scanner/ScannerTests.py +++ b/SCons/Scanner/ScannerTests.py @@ -57,14 +57,19 @@ class DummyNode: def __init__(self, name, search_result=()): self.name = name self.search_result = tuple(search_result) + def rexists(self): - return 1 + return True + def __str__(self): return self.name + def Rfindalldirs(self, pathlist): return self.search_result + pathlist + def __repr__(self): return self.name + def __eq__(self, other): return self.name == other.name diff --git a/SCons/Scanner/__init__.py b/SCons/Scanner/__init__.py index 3e7d746..e416df9 100644 --- a/SCons/Scanner/__init__.py +++ b/SCons/Scanner/__init__.py @@ -86,7 +86,7 @@ class Base: A scanner function takes three arguments: a Node to scan for dependecies, the construction environment to use, and an optional tuple of paths (as generated by the optional path function). - It must return a list containg the Nodes for all the direct + It must return a list containing the Nodes for all the direct dependencies of the file. The optional path function is called to return paths that can be |