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

brett.cannon python-checkins at python.org
Mon Aug 4 00:59:47 CEST 2008


Author: brett.cannon
Date: Mon Aug  4 00:59:46 2008
New Revision: 65446

Log:
Remove a dict.has_key() use in DocXMLRPCServer that comes up under -3.


Modified:
   python/trunk/Lib/DocXMLRPCServer.py

Modified: python/trunk/Lib/DocXMLRPCServer.py
==============================================================================
--- python/trunk/Lib/DocXMLRPCServer.py	(original)
+++ python/trunk/Lib/DocXMLRPCServer.py	Mon Aug  4 00:59:46 2008
@@ -175,7 +175,7 @@
         methods = {}
 
         for method_name in self.system_listMethods():
-            if self.funcs.has_key(method_name):
+            if method_name in self.funcs:
                 method = self.funcs[method_name]
             elif self.instance is not None:
                 method_info = [None, None] # argspec, documentation


More information about the Python-checkins mailing list