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

Skip to content

Commit e773f93

Browse files
committed
remove next and do a simple list unpacking
1 parent 4865259 commit e773f93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setupext.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -709,10 +709,10 @@ def do_custom_build(self, env):
709709
# Be robust against change of FreeType version.
710710
lib_paths = Path(src_path / "objs").rglob('freetype*.lib')
711711
# Select FreeType library for required platform
712-
lib_path = next(
712+
lib_path, = [
713713
p for p in lib_paths
714714
if msbuild_platform in p.resolve().as_uri()
715-
)
715+
]
716716
print(f"Copying {lib_path} to {src_path}/objs/.libs/libfreetype.lib")
717717
shutil.copy2(lib_path, src_path / "objs/.libs/libfreetype.lib")
718718

0 commit comments

Comments
 (0)