projects
/
pygrader.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a42ced8
)
mailpipe: use `messages.sort(...)`, not `m = sorted(m, ...)`.
author
W. Trevor King
<wking@tremily.us>
Sun, 2 Sep 2012 15:18:26 +0000
(11:18 -0400)
committer
W. Trevor King
<wking@tremily.us>
Sun, 2 Sep 2012 15:18:26 +0000
(11:18 -0400)
pygrader/mailpipe.py
patch
|
blob
|
history
diff --git
a/pygrader/mailpipe.py
b/pygrader/mailpipe.py
index daae3e281a53f1e49ba7e8cfc667d2714387a5bd..3f9f7c3d9bb69732ed1819a9157567bd03645c7b 100644
(file)
--- a/
pygrader/mailpipe.py
+++ b/
pygrader/mailpipe.py
@@
-662,7
+662,7
@@
def _load_messages(course, stream, mailbox=None, input_=None, output=None,
ombox = _mailbox.Maildir(output, factory=None, create=True)
else:
raise ValueError(mailbox)
- messages
= sorted(messages,
key=_get_message_time)
+ messages
.sort(
key=_get_message_time)
for key,msg in messages:
try:
ret = _parse_message(