folder/Maildir.py split the if
This patch splits the if to avoid multiple commands in the same line.
This commit is contained in:
parent
1bcd7d3d4d
commit
c68e70519d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user