offlineimap/folder files singleton-comparison

This patch change these errors in the 'folder' folder

C0121: Comparison to None should be 'expr is None' (singleton-comparison)
C0121: Comparison to None should be 'expr is not None' (singleton-comparison)
This commit is contained in:
Rodolfo García Peñas (kix)
2020-08-30 11:15:00 +02:00
parent 229aa59dba
commit 7b082f0fe9
4 changed files with 11 additions and 11 deletions

View File

@ -223,7 +223,7 @@ class BaseFolder():
:returns: Boolean indicating the match. Returns True in case it
implicitely saved the UIDVALIDITY."""
if self.get_saveduidvalidity() != None:
if self.get_saveduidvalidity() is not None:
return self.get_saveduidvalidity() == self.get_uidvalidity()
else:
self.save_uidvalidity()
@ -939,7 +939,7 @@ class BaseFolder():
# Execute new mail hook if we have new mail.
if self.have_newmail:
if self.newmail_hook != None:
if self.newmail_hook is not None:
self.newmail_hook()
def __syncmessagesto_delete(self, dstfolder, statusfolder):