Commit 03621c3d authored by Skip Montanaro's avatar Skip Montanaro

Raymond reminded me to use DSU key

parent 209e82b3
...@@ -557,8 +557,7 @@ def getsource(object): ...@@ -557,8 +557,7 @@ def getsource(object):
def walktree(classes, children, parent): def walktree(classes, children, parent):
"""Recursive helper function for getclasstree().""" """Recursive helper function for getclasstree()."""
results = [] results = []
classes.sort(lambda a, b: cmp("%s.%s" % (a.__module__, a.__name__), classes.sort(key=lambda c: (c.__module__, c.__name__))
"%s.%s" % (b.__module__, b.__name__)))
for c in classes: for c in classes:
results.append((c, c.__bases__)) results.append((c, c.__bases__))
if c in children: if c in children:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment