folder/Maildir.py split the if

This patch splits the if to avoid multiple commands in the same line.
This commit is contained in:
Rodolfo García Peñas (kix) 2020-08-30 13:49:36 +02:00
parent 1bcd7d3d4d
commit c68e70519d

View File

@ -466,7 +466,8 @@ class MaildirFolder(BaseFolder):
if uid not 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
oldfilename = self.messagelist[uid]['filename'] oldfilename = self.messagelist[uid]['filename']
dir_prefix, filename = os.path.split(oldfilename) dir_prefix, filename = os.path.split(oldfilename)