From 71d23b334be7faeb4bd8ff112a1e15f536e6ccfd Mon Sep 17 00:00:00 2001
From: Iustin Pop <iustin@google.com>
Date: Mon, 3 May 2010 17:08:20 +0200
Subject: [PATCH] Fix pylint 0.20.0 warnings

These seem to be wrong, possibly a regression in pylint.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
---
 daemons/ganeti-rapi | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/daemons/ganeti-rapi b/daemons/ganeti-rapi
index 255e03817..46393d239 100755
--- a/daemons/ganeti-rapi
+++ b/daemons/ganeti-rapi
@@ -80,6 +80,8 @@ class RemoteApiHttpServer(http.auth.HttpServerRequestAuthentication,
   AUTH_REALM = "Ganeti Remote API"
 
   def __init__(self, *args, **kwargs):
+    # pylint: disable-msg=W0233
+  # it seems pylint doesn't see the second parent class there
     http.server.HttpServer.__init__(self, *args, **kwargs)
     http.auth.HttpServerRequestAuthentication.__init__(self)
     self._resmap = connector.Mapper()
@@ -207,6 +209,8 @@ def ExecRapi(options, _):
   server = RemoteApiHttpServer(mainloop, options.bind_address, options.port,
                                ssl_params=ssl_params, ssl_verify_peer=False,
                                request_executor_class=JsonErrorRequestExecutor)
+  # pylint: disable-msg=E1101
+  # it seems pylint doesn't see the second parent class there
   server.Start()
   try:
     mainloop.Run()
-- 
GitLab