Fix lit failure on cmake-clang-x64_64-linux bot, apparently due to its having

a very (*very*) old version of Python (2.4?)

llvm-svn: 153409
This commit is contained in:
Eli Bendersky 2012-03-25 09:42:28 +00:00
parent f33086052d
commit 6330877a3e
1 changed files with 4 additions and 1 deletions

View File

@ -118,5 +118,8 @@ class TestingConfig:
@property
def root(self):
"""root attribute - The root configuration for the test suite."""
return self if self.parent is None else self.parent.root
if self.parent is None:
return self
else:
return self.parent.root