mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
lit: flesh out SubsituteCaptures
further
Add overloads for `__len__` and `__getitem__` to allow use of this class on Linux as well as Windows. With these overloads, lit can be used on both hosts for the swift testsuite. llvm-svn: 331431
This commit is contained in:
parent
3dbdfd12d9
commit
7dafb8329b
@ -171,3 +171,9 @@ class SubstituteCaptures:
|
||||
def __str__(self):
|
||||
return self.substitution
|
||||
|
||||
def __len__(self):
|
||||
return len(self.substitution)
|
||||
|
||||
def __getitem__(self, item):
|
||||
return self.substitution.__getitem__(item)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user