aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2022-09-07 13:47:11 -0700
committerEli Schwartz <eschwartz@archlinux.org>2022-10-03 00:16:09 -0400
commitf11ebf20ff51dc1e9d6aa07fea64bc891869e48a (patch)
treebeb396158f8494cab03e2307ba7d19a487641040
parent20d76b835372c0caf9cc3aac14b4984cac42f67a (diff)
downloadmeson-f11ebf20ff51dc1e9d6aa07fea64bc891869e48a.zip
meson-f11ebf20ff51dc1e9d6aa07fea64bc891869e48a.tar.gz
meson-f11ebf20ff51dc1e9d6aa07fea64bc891869e48a.tar.bz2
pylint: enable unnecessary-lambda
-rw-r--r--.pylintrc1
-rw-r--r--mesonbuild/backend/backends.py2
2 files changed, 1 insertions, 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):