IMAP.py comparison with None should use is
Comparison with None should be "is" not "=="
This commit is contained in:
parent
2f2f4ef918
commit
1ce229ca9d
@ -255,8 +255,8 @@ 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:
|
||||||
searchpath = get_os_sslcertfile_searchpath()
|
searchpath = get_os_sslcertfile_searchpath()
|
||||||
|
Loading…
Reference in New Issue
Block a user