python: lambda(p) is not P3k-compliant
authorSebastian Spaeth <Sebastian@SSpaeth.de>
Thu, 28 Oct 2010 12:37:16 +0000 (14:37 +0200)
committerCarl Worth <cworth@cworth.org>
Thu, 28 Oct 2010 19:12:10 +0000 (12:12 -0700)
Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
bindings/python/notmuch/message.py

index 613cc4abc2be7f89c1501cbabaf008288e50204e..ac85cbb453b83aa474298f43cd0066b40b23b28f 100644 (file)
@@ -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{ "