]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #12326: refactor usage of sys.platform
authorVictor Stinner <victor.stinner@haypocalc.com>
Sat, 20 Aug 2011 22:39:18 +0000 (00:39 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Sat, 20 Aug 2011 22:39:18 +0000 (00:39 +0200)
commite67474725b5b13b48ba0007e89314214a6bdca0b
tree3279b32d93e5c8a8e56e243b3377c5be0e784a98
parenta9931888edcac8bbaaee813fd8b9cfa02dcb1f4f
Issue #12326: refactor usage of sys.platform

 * Use str.startswith(tuple): I didn't know this Python feature, Python rocks!
 * Replace sometimes sys.platform.startswith('linux') with
   sys.platform == 'linux'
 * sys.platform doesn't contain the major version on Cygwin on Mac OS X
   (it's just 'cygwin' and 'darwin')
Lib/ctypes/util.py
Lib/distutils/command/build_ext.py
Lib/packaging/command/build_ext.py
Lib/test/support.py
Lib/test/test_fcntl.py
Lib/test/test_logging.py
Lib/test/test_socket.py
setup.py