From 997f5b27c598413c597d22abeb4364379de0a6c8 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:43:35 +0100 Subject: [PATCH] Renamed variable OS to os_name Variable OS should be in lowercase. --- offlineimap/utils/distro.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/offlineimap/utils/distro.py b/offlineimap/utils/distro.py index 73fb68e..53631f8 100644 --- a/offlineimap/utils/distro.py +++ b/offlineimap/utils/distro.py @@ -42,16 +42,16 @@ def get_os_name(): proper name capitalisation. """ - OS = platform.system().lower() + os_name = platform.system().lower() - if OS.startswith('linux'): + if os_name.startswith('linux'): DISTRO = platform.linux_distribution()[0] if DISTRO: - OS = OS + "-%s" % DISTRO.split()[0].lower() + os_name = os_name + "-%s" % DISTRO.split()[0].lower() if os.path.exists('/etc/arch-release'): - OS = "linux-arch" + os_name = "linux-arch" - return OS + return os_name def get_os_sslcertfile_searchpath():