From 6b59f5f3fd9bdf00875a7cead15f423fa1c2f910 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Thu, 16 Oct 2003 05:53:16 +0000 Subject: Let library modules use the new keyword arguments for list.sort(). --- Lib/pydoc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/pydoc.py') 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 += ':
\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, -- cgit v1.2.1