From: W. Trevor King Date: Sun, 2 Sep 2012 15:18:26 +0000 (-0400) Subject: mailpipe: use `messages.sort(...)`, not `m = sorted(m, ...)`. X-Git-Tag: v0.3~12 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a695d66933a57fc3fb7d239502ebc11a5e336ebd;p=pygrader.git mailpipe: use `messages.sort(...)`, not `m = sorted(m, ...)`. --- 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(