From faff27f0c97089dd13b483ed90ebaf19b153e3cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Sun, 25 Oct 2020 13:44:53 +0100 Subject: [PATCH] Renamed variable DISTRO to distro_name Variable DISTRO should be lowercase. I renamed it to distro_name. --- offlineimap/utils/distro.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/offlineimap/utils/distro.py b/offlineimap/utils/distro.py index 53631f8..8146211 100644 --- a/offlineimap/utils/distro.py +++ b/offlineimap/utils/distro.py @@ -45,9 +45,9 @@ def get_os_name(): os_name = platform.system().lower() if os_name.startswith('linux'): - DISTRO = platform.linux_distribution()[0] - if DISTRO: - os_name = os_name + "-%s" % DISTRO.split()[0].lower() + distro_name = platform.linux_distribution()[0] + if distro_name: + os_name = os_name + "-%s" % distro_name.split()[0].lower() if os.path.exists('/etc/arch-release'): os_name = "linux-arch"