From db1ee5b3e9ffc0e42144ecdf4612675011c78392 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Sun, 30 Aug 2020 14:04:43 +0200 Subject: [PATCH] folder/UIDMaps.py changed not var in This patch changes: if not var1 in var2 with if var1 not in var2 --- offlineimap/folder/UIDMaps.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/offlineimap/folder/UIDMaps.py b/offlineimap/folder/UIDMaps.py index 633fa1c..fea10b2 100644 --- a/offlineimap/folder/UIDMaps.py +++ b/offlineimap/folder/UIDMaps.py @@ -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