diff options
author | jakobjakobson13 <43045863+jakobjakobson13@users.noreply.github.com> | 2020-08-11 18:37:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-11 11:37:50 -0500 |
commit | c70bff83e452c9b76b7f5de2e6811b800d4f72cf (patch) | |
tree | 26ecb2165cb169d2586f927373b2e556d065adfe /numpy/distutils/system_info.py | |
parent | 25fa87a92d39c4a7de72f79263c9048d657b1226 (diff) | |
download | numpy-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.py | 3 |
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: |