fix SyntaxWarning: assignment to None (bug #843890)
This commit is contained in:
parent
64d87da307
commit
05c599028e
|
@ -757,7 +757,7 @@ def add_status_headers(message):
|
||||||
|
|
||||||
# files in the maildir 'cur' directory are no longer new,
|
# files in the maildir 'cur' directory are no longer new,
|
||||||
# they are the same as messages with 'Status: O' headers in mbox
|
# they are the same as messages with 'Status: O' headers in mbox
|
||||||
(None, last_dir) = os.path.split(os.path.dirname(message.fp.name))
|
last_dir = os.path.basename(os.path.dirname(message.fp.name))
|
||||||
if last_dir == "cur":
|
if last_dir == "cur":
|
||||||
status = status + "O"
|
status = status + "O"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue