[2.7] bpo-33513: Fixed incorrect version linux detection (platform.py) by mrandybu · Pull Request #6855 · python/cpython

In some linux distributions, the information about the distribution is incorrectly determined when the linux_distribution() method is called from the platform class. Since the information file os-release becomes a certain standard, I propose first of all to check its availability and if it is in the system - parse the information from it.

https://bugs.python.org/issue33513