[PATCH 2/2] python: lambda(p) is not P3k-compliant
Sebastian Spaeth
Sebastian at SSpaeth.de
Thu Oct 28 05:37:16 PDT 2010
Signed-off-by: Sebastian Spaeth <Sebastian at SSpaeth.de>
---
bindings/python/notmuch/message.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/bindings/python/notmuch/message.py b/bindings/python/notmuch/message.py
index 613cc4a..ac85cbb 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{ "
--
1.7.1
More information about the notmuch
mailing list