From a1f8576937a65e7cdcaa6a0440b05e3e77b524b8 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 17:27:40 +0100 Subject: [PATCH] distro_utils do not compare types This patch now use isinstance to compare types. --- offlineimap/utils/distro_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/offlineimap/utils/distro_utils.py b/offlineimap/utils/distro_utils.py index b720f07..6a81fcc 100644 --- a/offlineimap/utils/distro_utils.py +++ b/offlineimap/utils/distro_utils.py @@ -94,7 +94,7 @@ def get_os_sslcertfile(): return None for f in location: - assert (type(f) == type("")) + assert isinstance(f, str) if os.path.exists(f) and (os.path.isfile(f) or os.path.islink(f)): return f