From 174dde340508b6db890f77d571f91cb343c5441b Mon Sep 17 00:00:00 2001 From: Jacob Sayles Date: Mon, 1 Jun 2020 10:22:53 -0700 Subject: [PATCH] Fixed reference to python versions --- modoboa_installer/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modoboa_installer/utils.py b/modoboa_installer/utils.py index d95eeae..e0327ce 100644 --- a/modoboa_installer/utils.py +++ b/modoboa_installer/utils.py @@ -76,11 +76,11 @@ def exec_cmd(cmd, sudo_user=None, pinput=None, login=True, **kwargs): def dist_name(): """Try to guess the distribution name.""" try: - # Python 3.7 and up way + # Python 3.8 and up way import distro name, version, _id = distro.linux_distribution() except ModuleNotFoundError as e: - # Python 3.6 and down way + # Python 3.7 and down way import platform name, version, _id = platform.linux_distribution() return "unknown" if not name else name.lower()