From: Éric Araujo Date: Wed, 19 Oct 2011 04:01:57 +0000 (+0200) Subject: Improve Victor’s commit with cool new 2.5 idiom X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5e2d5df477eb244be657a942bdc863bce264d446;p=python Improve Victor’s commit with cool new 2.5 idiom --- diff --git a/setup.py b/setup.py index 542dc496df..76566bdb59 100644 --- 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')