[Python-checkins] r54169 - python/trunk/setup.py

georg.brandl python-checkins at python.org
Tue Mar 6 18:49:15 CET 2007


Author: georg.brandl
Date: Tue Mar 6 18:49:14 2007
New Revision: 54169
Modified:
 python/trunk/setup.py
Log:
Fix cmp vs. key argument for list.sort.
Modified: python/trunk/setup.py
==============================================================================
--- python/trunk/setup.py	(original)
+++ python/trunk/setup.py	Tue Mar 6 18:49:14 2007
@@ -187,7 +187,7 @@
 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("")


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /