From 1ce229ca9d08181912cce3276d0440b7bac5ccbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Sat, 31 Oct 2020 16:12:02 +0100 Subject: [PATCH] IMAP.py comparison with None should use is Comparison with None should be "is" not "==" --- offlineimap/repository/IMAP.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/offlineimap/repository/IMAP.py b/offlineimap/repository/IMAP.py index 4ca669d..b6f33c1 100644 --- a/offlineimap/repository/IMAP.py +++ b/offlineimap/repository/IMAP.py @@ -255,8 +255,8 @@ class IMAPRepository(BaseRepository): # Can't use above cacertfile because of abspath. conf_sslacertfile = self.getconf('sslcacertfile', None) if conf_sslacertfile == "OS-DEFAULT" or \ - conf_sslacertfile == None or \ - conf_sslacertfile == '': + conf_sslacertfile is None or \ + conf_sslacertfile == '': cacertfile = get_os_sslcertfile() if cacertfile is None: searchpath = get_os_sslcertfile_searchpath()