Skip to content

Commit ec303d5

Browse files
Apply ruff/refurb rule (FURB140)
FURB140 Use `itertools.starmap` instead of the generator
1 parent bfadc24 commit ec303d5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

distutils/unixccompiler.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -389,10 +389,7 @@ def find_library_file(self, dirs, lib, debug=0):
389389

390390
roots = map(self._library_root, dirs)
391391

392-
searched = (
393-
os.path.join(root, lib_name)
394-
for root, lib_name in itertools.product(roots, lib_names)
395-
)
392+
searched = itertools.starmap(os.path.join, itertools.product(roots, lib_names))
396393

397394
found = filter(os.path.exists, searched)
398395

0 commit comments

Comments
 (0)