Fix lit failure on cmake-clang-x64_64-linux bot, apparently due to its having
authorEli Bendersky <eli.bendersky@intel.com>
Sun, 25 Mar 2012 09:42:28 +0000 (09:42 +0000)
committerEli Bendersky <eli.bendersky@intel.com>
Sun, 25 Mar 2012 09:42:28 +0000 (09:42 +0000)
a very (*very*) old version of Python (2.4?)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153409 91177308-0d34-0410-b5e6-96231b3b80d8

utils/lit/lit/TestingConfig.py

index e4980b353bd1fd663c397463b956a2bf88dd88b5..223120c4fe22059955369c3efed7ca40058c91a5 100644 (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