◐ Shell
clean mode source ↗

Message 330733 - Python tracker

> Please keep Python 2.7 compatibility. It should be possible to copy the module back into Python 2.7 and use it there.

I don't understand why someone would like to copy Lib/platform.py from the master branch to Python 2.7? Python 2.7 already provides the platform module, it's part of its standard library.

platform.linux_distribution() function has been removed from master, so you cannot simply copy platform.py from master and use it in Python 2.7: it has a different API.