• Victor Stinner's avatar
    Issue #12326: refactor usage of sys.platform · e6747472
    Victor Stinner yazdı
     * 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')
    e6747472
util.py 7.78 KB