summaryrefslogtreecommitdiffstats
path: root/lldb/third_party/Python/module
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-11-05 18:38:02 +0000
committerZachary Turner <zturner@google.com>2015-11-05 18:38:02 +0000
commitcc8aa4f619072c3a1392ffc5eba8ebf0b56b6ae7 (patch)
tree032ce5598ef56a12070ef9c16ad45a2ab52014bf /lldb/third_party/Python/module
parent195f3a15e61edac7c82a628b21eb459d07ad0cec (diff)
downloadbcm5719-llvm-cc8aa4f619072c3a1392ffc5eba8ebf0b56b6ae7.tar.gz
bcm5719-llvm-cc8aa4f619072c3a1392ffc5eba8ebf0b56b6ae7.zip
Python 3 - Apply 2to3 `filter` fixer to unittest2.
llvm-svn: 252181
Diffstat (limited to 'lldb/third_party/Python/module')
-rw-r--r--lldb/third_party/Python/module/unittest2/unittest2/loader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/third_party/Python/module/unittest2/unittest2/loader.py b/lldb/third_party/Python/module/unittest2/unittest2/loader.py
index 6fbafb7a17e..92674e34592 100644
--- a/lldb/third_party/Python/module/unittest2/unittest2/loader.py
+++ b/lldb/third_party/Python/module/unittest2/unittest2/loader.py
@@ -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
OpenPOWER on IntegriCloud