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:
parent
4442a7ce67
commit
db1ee5b3e9
@ -148,7 +148,7 @@ class MappedIMAPFolder(IMAPFolder):
|
|||||||
# OK. Now we've got a nice list. First, delete things from the
|
# OK. Now we've got a nice list. First, delete things from the
|
||||||
# summary that have been deleted from the folder.
|
# summary that have been deleted from the folder.
|
||||||
for luid in list(self.diskl2r.keys()):
|
for luid in list(self.diskl2r.keys()):
|
||||||
if not luid in reallist:
|
if luid not in reallist:
|
||||||
ruid = self.diskl2r[luid]
|
ruid = self.diskl2r[luid]
|
||||||
# XXX: the following KeyError are sightly unexpected. This
|
# XXX: the following KeyError are sightly unexpected. This
|
||||||
# would require more digging to understand how it's
|
# would require more digging to understand how it's
|
||||||
@ -175,7 +175,7 @@ class MappedIMAPFolder(IMAPFolder):
|
|||||||
self.l2r = self.diskl2r.copy()
|
self.l2r = self.diskl2r.copy()
|
||||||
|
|
||||||
for luid in list(reallist.keys()):
|
for luid in list(reallist.keys()):
|
||||||
if not luid in self.l2r:
|
if luid not in self.l2r:
|
||||||
ruid = nextneg
|
ruid = nextneg
|
||||||
nextneg -= 1
|
nextneg -= 1
|
||||||
self.l2r[luid] = ruid
|
self.l2r[luid] = ruid
|
||||||
|
Loading…
Reference in New Issue
Block a user