From e95cf1c8a2cba11b38f9c83da659895fbc952466 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Tue, 6 Mar 2007 17:49:14 +0000 Subject: [PATCH] Fix cmp vs. key argument for list.sort. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index f19c6d0e89d..6814dacc812 100644 --- a/setup.py +++ b/setup.py @@ -187,7 +187,7 @@ class PyBuildExt(build_ext): longest = max(longest, max([len(name) for name in self.failed])) def print_three_column(lst): - lst.sort(cmp=str.lower) + lst.sort(key=str.lower) # guarantee zip() doesn't drop anything while len(lst) % 3: lst.append("")