Author: zturner Date: Thu Nov 5 12:38:02 2015 New Revision: 252181 URL: http://llvm.org/viewvc/llvm-project?rev=252181&view=rev Log: Python 3 - Apply 2to3 `filter` fixer to unittest2.
Modified: lldb/trunk/third_party/Python/module/unittest2/unittest2/loader.py Modified: lldb/trunk/third_party/Python/module/unittest2/unittest2/loader.py URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/third_party/Python/module/unittest2/unittest2/loader.py?rev=252181&r1=252180&r2=252181&view=diff ============================================================================== --- lldb/trunk/third_party/Python/module/unittest2/unittest2/loader.py (original) +++ lldb/trunk/third_party/Python/module/unittest2/unittest2/loader.py Thu Nov 5 12:38:02 2015 @@ -155,7 +155,7 @@ class TestLoader(unittest.TestLoader): prefix=self.testMethodPrefix): return attrname.startswith(prefix) and \ hasattr(getattr(testCaseClass, attrname), '__call__') - testFnNames = filter(isTestMethod, dir(testCaseClass)) + testFnNames = list(filter(isTestMethod, dir(testCaseClass))) if self.sortTestMethodsUsing: testFnNames.sort(key=_CmpToKey(self.sortTestMethodsUsing)) return testFnNames _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits