folder/Maildir.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 13:42:09 +02:00
parent 28910df6c2
commit 3d2692103f

View File

@ -466,7 +466,7 @@ class MaildirFolder(BaseFolder):
an efficient rename. an efficient rename.
""" """
if not uid in self.messagelist: if uid not in self.messagelist:
raise OfflineImapError("Cannot change unknown Maildir UID %s" % uid, raise OfflineImapError("Cannot change unknown Maildir UID %s" % uid,
OfflineImapError.ERROR.MESSAGE) OfflineImapError.ERROR.MESSAGE)
if uid == new_uid: return if uid == new_uid: return