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

Skip to content

Commit 5e2d5df

Browse files
committed
Improve Victor’s commit with cool new 2.5 idiom
1 parent 1e73a24 commit 5e2d5df

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1380,8 +1380,7 @@ class db_found(Exception): pass
13801380
# End multiprocessing
13811381

13821382
# Platform-specific libraries
1383-
if any(platform.startswith(prefix)
1384-
for prefix in ("linux", "freebsd", "gnukfreebsd")):
1383+
if platform.startswith(('linux', 'freebsd', 'gnukfreebsd')):
13851384
exts.append( Extension('ossaudiodev', ['ossaudiodev.c']) )
13861385
else:
13871386
missing.append('ossaudiodev')

0 commit comments

Comments
 (0)