Author Rasmus Rynning Rasmussen
Recipients Rasmus Rynning Rasmussen
Date 2016-01-27.17:45:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
During the transition from python 2.7.10 to 2.7.11 some code seems to have been lost. platform.linux_distribution() is not able to recognise Debian based distributions in python 2.7.11.

The following code was present in, python 2.7.10, but seems to be missing in 2.7.11

# check for the LSB /etc/lsb-release file first, needed so
# that the distribution doesn't get identified as Debian.
        with open("/etc/lsb-release", "rU") as etclsbrel:
            for line in etclsbrel:
                m =
                if m:
                    _u_distname =
                m =
                if m:
                    _u_version =
                m =
                if m:
                    _u_id =
            if _u_distname and _u_version:
                return (_u_distname, _u_version, _u_id)
    except (EnvironmentError, UnboundLocalError):
Date User Action Args
2016-01-27 17:45:28Rasmus Rynning Rasmussensetrecipients: + Rasmus Rynning Rasmussen
2016-01-27 17:45:28Rasmus Rynning Rasmussensetmessageid: <>
2016-01-27 17:45:27Rasmus Rynning Rasmussenlinkissue26222 messages
2016-01-27 17:45:27Rasmus Rynning Rasmussencreate