Improve Victor’s commit with cool new 2.5 idiom

This commit is contained in:
Éric Araujo 2011-10-19 06:01:57 +02:00
parent 1e73a2467f
commit 5e2d5df477

View File

@ -1380,8 +1380,7 @@ class PyBuildExt(build_ext):
# End multiprocessing
# Platform-specific libraries
if any(platform.startswith(prefix)
for prefix in ("linux", "freebsd", "gnukfreebsd")):
if platform.startswith(('linux', 'freebsd', 'gnukfreebsd')):
exts.append( Extension('ossaudiodev', ['ossaudiodev.c']) )
else:
missing.append('ossaudiodev')