From a695d66933a57fc3fb7d239502ebc11a5e336ebd Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 2 Sep 2012 11:18:26 -0400 Subject: [PATCH] mailpipe: use `messages.sort(...)`, not `m = sorted(m, ...)`. --- pygrader/mailpipe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygrader/mailpipe.py b/pygrader/mailpipe.py index daae3e2..3f9f7c3 100644 --- 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( -- 2.26.2