Fix cmp vs. key argument for list.sort.

This commit is contained in:
Georg Brandl 2007-03-06 17:49:14 +00:00
parent 2054ee9b6f
commit e95cf1c8a2
1 changed files with 1 additions and 1 deletions

View File

@ -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("")