From: Georg Brandl Date: Tue, 6 Mar 2007 17:49:14 +0000 (+0000) Subject: Fix cmp vs. key argument for list.sort. X-Git-Tag: v2.6a1~2099 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e95cf1c8a2cba11b38f9c83da659895fbc952466;p=python Fix cmp vs. key argument for list.sort. --- diff --git a/setup.py b/setup.py index f19c6d0e89..6814dacc81 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("")