Fix wrong call to a function (#42814)

This commit is contained in:
Massimiliano Culpo 2024-02-23 06:37:22 +01:00 committed by GitHub
parent 23b299c086
commit 98de8e3257
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -376,8 +376,7 @@ def headers(self) -> HeaderList:
platlib = self.prefix.join(self.spec["python"].package.platlib).join(name)
purelib = self.prefix.join(self.spec["python"].package.purelib).join(name)
find_all_headers = functools.partial(fs.find_all_headers, recursive=True)
headers_list = map(find_all_headers, [include, platlib, purelib])
headers_list = map(fs.find_all_headers, [include, platlib, purelib])
headers = functools.reduce(operator.add, headers_list)
if headers: