From 32cffcf1aba9e5ac3315556b852e9c8ea6da64e7 Mon Sep 17 00:00:00 2001 From: Serge Guelton Date: Thu, 21 Mar 2019 07:19:09 +0000 Subject: Use list comprehension instead of map/filter to prepare Python2/3 compat Differential Revision: https://reviews.llvm.org/D59579 llvm-svn: 356647 --- lldb/packages/Python/lldbsuite/test/dotest.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lldb/packages/Python') diff --git a/lldb/packages/Python/lldbsuite/test/dotest.py b/lldb/packages/Python/lldbsuite/test/dotest.py index c6cae1b3406..b406def22f7 100644 --- a/lldb/packages/Python/lldbsuite/test/dotest.py +++ b/lldb/packages/Python/lldbsuite/test/dotest.py @@ -524,8 +524,7 @@ def parseOptionsAndInitTestdirs(): # Gather all the dirs passed on the command line. if len(args.args) > 0: - configuration.testdirs = list( - map(lambda x: os.path.realpath(os.path.abspath(x)), args.args)) + configuration.testdirs = [os.path.realpath(os.path.abspath(x)) for x in args.args] # Shut off multiprocessing mode when test directories are specified. configuration.no_multiprocess_test_runner = True -- cgit v1.2.3