2to3 -f has_key
[sfa.git] / sfa / server / xmlrpcapi.py
index 1711f88..74e0026 100644 (file)
@@ -136,7 +136,7 @@ class XmlrpcApi:
             interface = xmlrpc_client
             self.protocol = 'xmlrpc'
             (args, method) = xmlrpc_client.loads(data)
-            if method_map.has_key(method):
+            if method in method_map:
                 method = method_map[method]
             methodresponse = True