alexander-naumov/pam-accesscontrol

DeprecationWarning: dist() and linux_distribution() functions are deprecated in Python 3.5

Closed this issue · 1 comments

Deprecation, Deprecation everywhere :-)

# pam-accesscontrol show-pam-info sshd login
/usr/sbin/pam-accesscontrol:63: DeprecationWarning: dist() and linux_distribution() functions are deprecated in Python 3.5
  if platform.linux_distribution()[0] in ['Ubuntu', 'Debian']:
/usr/sbin/pam-accesscontrol:65: DeprecationWarning: dist() and linux_distribution() functions are deprecated in Python 3.5
  if platform.linux_distribution()[0] in ['CentOS Linux', 'Fedora', 'openSUSE', 'SuSE']:
/usr/sbin/pam-accesscontrol:67: DeprecationWarning: dist() and linux_distribution() functions are deprecated in Python 3.5
  if len(platform.linux_distribution()[0]) == 0:
-----------------------------------------------------------------------
Information about /etc/pam.d/sshd:
SSH (Secure Shell) is a program for logging into and executing commands
on a remote machine. It is intended to replace rsh (rlogin and rsh) and
provides openssl (secure encrypted communication) between two untrusted
hosts over an insecure network.

xorg-x11 (X Window System) connections and arbitrary TCP/IP ports can
also be forwarded over the secure channel.
-----------------------------------------------------------------------
Information about /etc/pam.d/login:
This package contains a large variety of low-level system utilities
that are necessary for a Linux system to function. It contains the
mount program, the fdisk configuration tool, and more.

openSUSE Tumbleweed, Python3.7.3

Yet another dependency - Python3's distro module.
We have to test the support of all distro names (returned by distro.id()) until next release and update it if necessary.