Use the correct form for cmp
authorMatthieu Patou <mat@matws.net>
Thu, 11 Nov 2010 19:50:53 +0000 (22:50 +0300)
committerMatthieu Patou <mat@matws.net>
Thu, 11 Nov 2010 19:50:53 +0000 (22:50 +0300)
web/build.py

index 977f16e02c686f5290f7cf72ab51ff9d7634e965..b28eb85580f9323eb93b49e28b8e0c583e1c42cb 100755 (executable)
@@ -264,7 +264,7 @@ def view_recent_builds(myself, tree, sort_by):
         "host": lambda a, b: cmp(a[2], b[2]),
         "platform": lambda a, b: cmp(a[1], b[1]),
         "compiler": lambda a, b: cmp(a[3], b[3]),
-        "status": lambda a, b: a[6].cmp(b[6]),
+        "status": lambda a, b: cmp(a[6], b[6]),
         }
 
     assert tree in trees, "not a build tree"