Revision b459a848 lib/server/rapi.py

b/lib/server/rapi.py
22 22

  
23 23
"""
24 24

  
25
# pylint: disable-msg=C0103,W0142
25
# pylint: disable=C0103,W0142
26 26

  
27 27
# C0103: Invalid name ganeti-watcher
28 28

  
......
34 34
import errno
35 35

  
36 36
try:
37
  from pyinotify import pyinotify # pylint: disable-msg=E0611
37
  from pyinotify import pyinotify # pylint: disable=E0611
38 38
except ImportError:
39 39
  import pyinotify
40 40

  
......
49 49
from ganeti import utils
50 50
from ganeti.rapi import connector
51 51

  
52
import ganeti.http.auth   # pylint: disable-msg=W0611
52
import ganeti.http.auth   # pylint: disable=W0611
53 53
import ganeti.http.server
54 54

  
55 55

  
......
90 90
  AUTH_REALM = "Ganeti Remote API"
91 91

  
92 92
  def __init__(self, *args, **kwargs):
93
    # pylint: disable-msg=W0233
93
    # pylint: disable=W0233
94 94
    # it seems pylint doesn't see the second parent class there
95 95
    http.server.HttpServer.__init__(self, *args, **kwargs)
96 96
    http.auth.HttpServerRequestAuthentication.__init__(self)
......
118 118

  
119 119
      users = http.auth.ParsePasswordFile(contents)
120 120

  
121
    except Exception, err: # pylint: disable-msg=W0703
121
    except Exception, err: # pylint: disable=W0703
122 122
      # We don't care about the type of exception
123 123
      logging.error("Error while parsing %s: %s", filename, err)
124 124
      return False
......
321 321

  
322 322
  server.LoadUsers(constants.RAPI_USERS_FILE)
323 323

  
324
  # pylint: disable-msg=E1101
324
  # pylint: disable=E1101
325 325
  # it seems pylint doesn't see the second parent class there
326 326
  server.Start()
327 327

  
328 328
  return (mainloop, server)
329 329

  
330 330

  
331
def ExecRapi(options, args, prep_data): # pylint: disable-msg=W0613
331
def ExecRapi(options, args, prep_data): # pylint: disable=W0613
332 332
  """Main remote API function, executed with the PID file held.
333 333

  
334 334
  """

Also available in: Unified diff