mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
Fix cmp vs. key argument for list.sort.
This commit is contained in:
parent
2054ee9b6f
commit
e95cf1c8a2
1 changed files with 1 additions and 1 deletions
2
setup.py
2
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("")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue