aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--bindings/python/notmuch/message.py2
1 files changed, 1 insertions, 1 deletions
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{ "