mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Let library modules use the new keyword arguments for list.sort().
This commit is contained in:
parent
42b1ba31af
commit
6b59f5f3fd
7 changed files with 18 additions and 24 deletions
|
@ -779,7 +779,7 @@ class HTMLDoc(Doc):
|
|||
tag += ':<br>\n'
|
||||
|
||||
# Sort attrs by name.
|
||||
attrs.sort(lambda t1, t2: cmp(t1[0], t2[0]))
|
||||
attrs.sort(key=lambda t: t[0])
|
||||
|
||||
# Pump out the attrs, segregated by kind.
|
||||
attrs = spill('Methods %s' % tag, attrs,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue