]> granicus.if.org Git - python/commitdiff
Improve Victor’s commit with cool new 2.5 idiom
authorÉric Araujo <merwok@netwok.org>
Wed, 19 Oct 2011 04:01:57 +0000 (06:01 +0200)
committerÉric Araujo <merwok@netwok.org>
Wed, 19 Oct 2011 04:01:57 +0000 (06:01 +0200)
setup.py

index 542dc496df8c03220276f292e66b8e73194b3641..76566bdb5903b7c7fab1febf00756c1b30417d0e 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -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')