Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9ad5dda

Browse files
johnthagenQuLogic
andauthored
Avoid double converting to Path
Co-authored-by: Elliott Sales de Andrade <[email protected]>
1 parent d1b279b commit 9ad5dda

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ci/check_wheel_licenses.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
dist_dir = project_dir / 'dist'
2222
license_dir = project_dir / 'LICENSE'
2323

24-
license_file_names = [Path(path).name
25-
for path in sorted(license_dir.glob('*'))]
24+
license_file_names = [path.name for path in sorted(license_dir.glob('*'))]
2625
for wheel in dist_dir.glob('*.whl'):
2726
print(f'Checking LICENSE files in: {wheel}')
2827
with zipfile.ZipFile(wheel) as f:

0 commit comments

Comments
 (0)