summaryrefslogtreecommitdiff
path: root/numpy/distutils/system_info.py
diff options
context:
space:
mode:
authorjakobjakobson13 <43045863+jakobjakobson13@users.noreply.github.com>2020-08-11 18:37:50 +0200
committerGitHub <noreply@github.com>2020-08-11 11:37:50 -0500
commitc70bff83e452c9b76b7f5de2e6811b800d4f72cf (patch)
tree26ecb2165cb169d2586f927373b2e556d065adfe /numpy/distutils/system_info.py
parent25fa87a92d39c4a7de72f79263c9048d657b1226 (diff)
downloadnumpy-c70bff83e452c9b76b7f5de2e6811b800d4f72cf.tar.gz
MAINT: Replace lambda function by list comprehension (gh-17055)
See #17012 item 15 Co-authored-by: Jakob <jakobjakobson13@posteo.de>
Diffstat (limited to 'numpy/distutils/system_info.py')
-rw-r--r--numpy/distutils/system_info.py3
1 files changed, 1 insertions, 2 deletions
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: