[cfe-commits] r74737 - /cfe/trunk/utils/test/TestRunner.py

Daniel Dunbar daniel at zuster.org
Thu Jul 2 16:56:38 PDT 2009


Author: ddunbar
Date: Thu Jul  2 18:56:37 2009
New Revision: 74737

URL: http://llvm.org/viewvc/llvm-project?rev=74737&view=rev
Log:
Avoid @staticmethod to allow use with Python 2.3.

Modified:
    cfe/trunk/utils/test/TestRunner.py

Modified: cfe/trunk/utils/test/TestRunner.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/test/TestRunner.py?rev=74737&r1=74736&r2=74737&view=diff

==============================================================================
--- cfe/trunk/utils/test/TestRunner.py (original)
+++ cfe/trunk/utils/test/TestRunner.py Thu Jul  2 18:56:37 2009
@@ -36,8 +36,9 @@
     Invalid = 5
 
     kNames = ['Pass','XFail','Fail','XPass','NoRunLine','Invalid']
-    @staticmethod
-    def getName(code): return TestStatus.kNames[code]
+    def getName(code): 
+        return TestStatus.kNames[code]
+    getName = staticmethod(getName)
 
 def mkdir_p(path):
     if not path:





More information about the cfe-commits mailing list