IMAP.py comparison with None should use is

Comparison with None should be "is" not "=="
This commit is contained in:
Rodolfo García Peñas (kix) 2020-10-31 16:12:02 +01:00
parent 2f2f4ef918
commit 1ce229ca9d

View File

@ -255,7 +255,7 @@ class IMAPRepository(BaseRepository):
# Can't use above cacertfile because of abspath. # Can't use above cacertfile because of abspath.
conf_sslacertfile = self.getconf('sslcacertfile', None) conf_sslacertfile = self.getconf('sslcacertfile', None)
if conf_sslacertfile == "OS-DEFAULT" or \ if conf_sslacertfile == "OS-DEFAULT" or \
conf_sslacertfile == None or \ conf_sslacertfile is None or \
conf_sslacertfile == '': conf_sslacertfile == '':
cacertfile = get_os_sslcertfile() cacertfile = get_os_sslcertfile()
if cacertfile is None: if cacertfile is None: