summaryrefslogtreecommitdiffstats
path: root/Lib/inspect.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/inspect.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/inspect.py')
-rw-r--r--Lib/inspect.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/inspect.py b/Lib/inspect.py
index 1f49bcb..4874904 100644
--- a/Lib/inspect.py
+++ b/Lib/inspect.py
@@ -553,7 +553,7 @@ def getsource(object):
def walktree(classes, children, parent):
"""Recursive helper function for getclasstree()."""
results = []
- classes.sort(lambda a, b: cmp(a.__name__, b.__name__))
+ classes.sort(key=lambda c: c.__name__)
for c in classes:
results.append((c, c.__bases__))
if c in children: