From 9d93a6de8fad39e51d6e3bbdf258c1edb8750879 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 13:23:07 +0200 Subject: [PATCH] folder/GmailMaildir.py changed not var in This patch changes: if not var1 in var2 with if var1 not in var2 --- offlineimap/folder/GmailMaildir.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/offlineimap/folder/GmailMaildir.py b/offlineimap/folder/GmailMaildir.py index 79a84f8..395b7a3 100644 --- a/offlineimap/folder/GmailMaildir.py +++ b/offlineimap/folder/GmailMaildir.py @@ -105,7 +105,7 @@ class GmailMaildirFolder(MaildirFolder): return self.messagelist[uid]['labels'] def getmessagemtime(self, uid): - if not 'mtime' in self.messagelist[uid]: + if 'mtime' not in self.messagelist[uid]: return 0 else: return self.messagelist[uid]['mtime'] @@ -289,12 +289,12 @@ class GmailMaildirFolder(MaildirFolder): dellabels = statuslabels - selflabels for lb in addlabels: - if not lb in addlabellist: + if lb not in addlabellist: addlabellist[lb] = [] addlabellist[lb].append(uid) for lb in dellabels: - if not lb in dellabellist: + if lb not in dellabellist: dellabellist[lb] = [] dellabellist[lb].append(uid)