]> granicus.if.org Git - python/commitdiff
Fix cmp vs. key argument for list.sort.
authorGeorg Brandl <georg@python.org>
Tue, 6 Mar 2007 17:49:14 +0000 (17:49 +0000)
committerGeorg Brandl <georg@python.org>
Tue, 6 Mar 2007 17:49:14 +0000 (17:49 +0000)
setup.py

index f19c6d0e89d370d97107edec2ccd6601dd1b60ef..6814dacc81237862da46ec18e26c2d99124e95f1 100644 (file)
--- 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("")