diff --git a/.pylintrc b/.pylintrc index 4969aabda..e30b0f771 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 cd0a738a4..2520f0a5b 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):