Let library modules use the new keyword arguments for list.sort().

This commit is contained in:
Raymond Hettinger 2003-10-16 05:53:16 +00:00
parent 42b1ba31af
commit 6b59f5f3fd
7 changed files with 18 additions and 24 deletions

View file

@ -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,