From c68e70519df3e7f562f45b0a9d19fab1976e4174 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:49:36 +0200 Subject: [PATCH] folder/Maildir.py split the if This patch splits the if to avoid multiple commands in the same line. --- offlineimap/folder/Maildir.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/offlineimap/folder/Maildir.py b/offlineimap/folder/Maildir.py index f007b07..9783069 100644 --- a/offlineimap/folder/Maildir.py +++ b/offlineimap/folder/Maildir.py @@ -466,7 +466,8 @@ class MaildirFolder(BaseFolder): if uid not in self.messagelist: raise OfflineImapError("Cannot change unknown Maildir UID %s" % uid, OfflineImapError.ERROR.MESSAGE) - if uid == new_uid: return + if uid == new_uid: + return oldfilename = self.messagelist[uid]['filename'] dir_prefix, filename = os.path.split(oldfilename)