From f11ebf20ff51dc1e9d6aa07fea64bc891869e48a Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Wed, 7 Sep 2022 13:47:11 -0700 Subject: pylint: enable unnecessary-lambda --- .pylintrc | 1 - mesonbuild/backend/backends.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.pylintrc b/.pylintrc index 4969aab..e30b0f7 100644 --- a/.pylintrc +++ b/.pylintrc @@ -71,7 +71,6 @@ disable= undefined-loop-variable, unidiomatic-typecheck, unnecessary-dict-index-lookup, - unnecessary-lambda, unnecessary-lambda-assignment, unsubscriptable-object, unused-argument, diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py index cd0a738..2520f0a 100644 --- a/mesonbuild/backend/backends.py +++ b/mesonbuild/backend/backends.py @@ -1779,7 +1779,7 @@ class Backend: source_list += [os.path.join(self.source_dir, j)] elif isinstance(j, (build.CustomTarget, build.BuildTarget)): source_list += [os.path.join(self.build_dir, j.get_subdir(), o) for o in j.get_outputs()] - source_list = list(map(lambda x: os.path.normpath(x), source_list)) + source_list = [os.path.normpath(s) for s in source_list] compiler: T.List[str] = [] if isinstance(target, build.CustomTarget): -- cgit v1.1