folder/UIDMaps.py changed not var in

This patch changes:

if not var1 in var2

with

if var1 not in var2
This commit is contained in:
Rodolfo García Peñas (kix) 2020-08-30 14:04:43 +02:00
parent 4442a7ce67
commit db1ee5b3e9

View File

@ -148,7 +148,7 @@ class MappedIMAPFolder(IMAPFolder):
# OK. Now we've got a nice list. First, delete things from the
# summary that have been deleted from the folder.
for luid in list(self.diskl2r.keys()):
if not luid in reallist:
if luid not in reallist:
ruid = self.diskl2r[luid]
# XXX: the following KeyError are sightly unexpected. This
# would require more digging to understand how it's
@ -175,7 +175,7 @@ class MappedIMAPFolder(IMAPFolder):
self.l2r = self.diskl2r.copy()
for luid in list(reallist.keys()):
if not luid in self.l2r:
if luid not in self.l2r:
ruid = nextneg
nextneg -= 1
self.l2r[luid] = ruid