diff options
author | Raymond Hettinger <python@rcn.com> | 2003-10-16 05:53:16 +0000 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2003-10-16 05:53:16 +0000 |
commit | 091d51a469cd3abf6ea1ccd9cc915c441d5d130a (patch) | |
tree | b76406c755356645f75affd57d5468c5fd57baef /Lib/pydoc.py | |
parent | 9f2f04869acb8f1ca69f44d0321616cf1f93b5fd (diff) | |
download | cpython-091d51a469cd3abf6ea1ccd9cc915c441d5d130a.tar.gz |
Let library modules use the new keyword arguments for list.sort().
Diffstat (limited to 'Lib/pydoc.py')
-rwxr-xr-x | Lib/pydoc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py index fee63427f6..8ccc2033c9 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -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, |