summaryrefslogtreecommitdiffstats
path: root/Lib/pydoc.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-10-16 05:53:16 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-10-16 05:53:16 (GMT)
commit6b59f5f3fd9bdf00875a7cead15f423fa1c2f910 (patch)
tree1bd1e055f31e154230ffd962a294d37cf678c87a /Lib/pydoc.py
parent42b1ba31aff86af6257a0fca455d5569bce9d8fc (diff)
downloadcpython-6b59f5f3fd9bdf00875a7cead15f423fa1c2f910.zip
cpython-6b59f5f3fd9bdf00875a7cead15f423fa1c2f910.tar.gz
cpython-6b59f5f3fd9bdf00875a7cead15f423fa1c2f910.tar.bz2
Let library modules use the new keyword arguments for list.sort().
Diffstat (limited to 'Lib/pydoc.py')
-rwxr-xr-xLib/pydoc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py
index fee6342..8ccc203 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,