From: Brett Cannon <bcannon@gmail.com> Date: Sun, 3 Aug 2008 22:59:46 +0000 (+0000) Subject: Remove a dict.has_key() use in DocXMLRPCServer that comes up under -3. X-Git-Tag: v2.6b3~159 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b2f49ff88d0d5e42ffc26c48b8759c1432a4e55c;p=python Remove a dict.has_key() use in DocXMLRPCServer that comes up under -3. --- diff --git a/Lib/DocXMLRPCServer.py b/Lib/DocXMLRPCServer.py index 3af9d4c5ad..432b3c3aa8 100644 --- a/Lib/DocXMLRPCServer.py +++ b/Lib/DocXMLRPCServer.py @@ -175,7 +175,7 @@ class XMLRPCDocGenerator: 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