From c70bff83e452c9b76b7f5de2e6811b800d4f72cf Mon Sep 17 00:00:00 2001 From: jakobjakobson13 <43045863+jakobjakobson13@users.noreply.github.com> Date: Tue, 11 Aug 2020 18:37:50 +0200 Subject: MAINT: Replace lambda function by list comprehension (gh-17055) See #17012 item 15 Co-authored-by: Jakob --- numpy/distutils/system_info.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'numpy/distutils/system_info.py') diff --git a/numpy/distutils/system_info.py b/numpy/distutils/system_info.py index df82683dc..760bb7d5c 100644 --- a/numpy/distutils/system_info.py +++ b/numpy/distutils/system_info.py @@ -715,8 +715,7 @@ class system_info: AliasedOptionError : in case more than one of the options are found """ - found = map(lambda opt: self.cp.has_option(self.section, opt), options) - found = list(found) + found = [self.cp.has_option(self.section, opt) for opt in options] if sum(found) == 1: return options[found.index(True)] elif sum(found) == 0: -- cgit v1.2.1