apache2buddy icon indicating copy to clipboard operation
apache2buddy copied to clipboard

Newer versions of python throw deprecation warnings

Open richardforth opened this issue 3 years ago • 5 comments
trafficstars

DeprecationWarning: distro.linux_distribution() is deprecated. It should only be used as a compatibility shim with Python's platform.linux_distribution(). Please use distro.id(), distro.version() and distro.name() instead.

richardforth avatar Mar 29 '22 19:03 richardforth

Debian 11:

$ docker run -it forric/debian11:latest /bin/bash
root@e96ff14bccd0:/# python3
Python 3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import distro
>>> distro.id()
'debian'
>>> distro.version()
'11'
>>> distro.name()
'Debian GNU/Linux'
>>> distro.codename()
'bullseye'

richardforth avatar Mar 29 '22 19:03 richardforth

Got to do testing to see if this is also backward compatible with older python versions that dont complain currently

richardforth avatar Mar 29 '22 19:03 richardforth

... redacted

richardforth avatar Oct 30 '22 21:10 richardforth

Debian 10

image

Debian 11

image

richardforth avatar Oct 30 '22 21:10 richardforth

Ubuntu 22.04

image

richardforth avatar Oct 30 '22 22:10 richardforth