Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix python3 sys.platform check for Linux #15727

Merged

Commits on Jan 22, 2020

  1. Fix python sys.platform check for Linux

    On Linux, sys.platform doesn’t contain the major version anymore. It is now always ‘linux’, instead of ‘linux2’ or ‘linux3’ depending on the Linux version used to build Python. Replace sys.platform == ‘linux2’ with sys.platform.startswith(‘linux’), or directly sys.platform == ‘linux’ if you don’t need to support older Python versions.
    
    Ref: https://docs.python.org/3.3/whatsnew/3.3.html#porting-python-code
    andrewkroh committed Jan 22, 2020
    Configuration menu
    Copy the full SHA
    de1ce4c View commit details
    Browse the repository at this point in the history