[Python-checkins] r59455 - python/trunk/Lib/DocXMLRPCServer.py

guido.van.rossum python-checkins at python.org
Mon Dec 10 21:42:54 CET 2007


Author: guido.van.rossum
Date: Mon Dec 10 21:42:53 2007
New Revision: 59455

Modified:
   python/trunk/Lib/DocXMLRPCServer.py
Log:
Remove a 2.2-ism.


Modified: python/trunk/Lib/DocXMLRPCServer.py
==============================================================================
--- python/trunk/Lib/DocXMLRPCServer.py	(original)
+++ python/trunk/Lib/DocXMLRPCServer.py	Mon Dec 10 21:42:53 2007
@@ -123,8 +123,7 @@
         result = result + '<p>%s</p>\n' % doc
 
         contents = []
-        method_items = methods.items()
-        method_items.sort()
+        method_items = sorted(methods.items())
         for key, value in method_items:
             contents.append(self.docroutine(value, key, funcs=fdict))
         result = result + self.bigsection(


More information about the Python-checkins mailing list