X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=bindings%2Fpython%2Fnotmuch%2Fmessage.py;h=ac85cbb453b83aa474298f43cd0066b40b23b28f;hb=c8bdd29895352798132c046c85ef72dba10ae12c;hp=613cc4abc2be7f89c1501cbabaf008288e50204e;hpb=35042e0696dd79c6a008918247d52c06ac9a6365;p=notmuch diff --git a/bindings/python/notmuch/message.py b/bindings/python/notmuch/message.py index 613cc4ab..ac85cbb4 100644 --- a/bindings/python/notmuch/message.py +++ b/bindings/python/notmuch/message.py @@ -748,7 +748,7 @@ class Message(object): output += "\n\fbody{" parts = format["body"] - parts.sort(key=lambda(p): p["id"]) + parts.sort(key=lambda x: x['id']) for p in parts: if not p.has_key("filename"): output += "\n\fpart{ "