Skip to content

Python3.8 #2

@martindemharter

Description

@martindemharter

Hello everybody,

this script won't work on python3.8 onward anymore. The function platform.linux_distribution() was deprecated with python 3.5 and removed with 3.8. The function platform.uname() is not really helpful for CentOS/RedHat Distributions, so i went the route of /etc/os-release and parsing the relevant part.

It is tested and works for Python 3.6.9 (on Ubuntu 18.04.5) and Python 3.8.5 (on Ubuntu 20.04.1) as well as CentOS 8.2.2004 with Python 3.8.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions