[Python-checkins] python/dist/src/Lib inspect.py,1.56,1.57

montanaro at users.sourceforge.net montanaro at users.sourceforge.net
Mon Sep 20 18:43:33 CEST 2004


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10759

Modified Files:
	inspect.py 
Log Message:
Raymond reminded me to use DSU key


Index: inspect.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/inspect.py,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- inspect.py	20 Sep 2004 15:40:38 -0000	1.56
+++ inspect.py	20 Sep 2004 16:43:30 -0000	1.57
@@ -557,8 +557,7 @@
 def walktree(classes, children, parent):
     """Recursive helper function for getclasstree()."""
     results = []
-    classes.sort(lambda a, b: cmp("%s.%s" % (a.__module__, a.__name__),
-                                  "%s.%s" % (b.__module__, b.__name__)))
+    classes.sort(key=lambda c: (c.__module__, c.__name__))
     for c in classes:
         results.append((c, c.__bases__))
         if c in children:



More information about the Python-checkins mailing list