Revision c3a5176f lib/rapi/baserlib.py

b/lib/rapi/baserlib.py
59 59
          for method in _SUPPORTED_METHODS]
60 60

  
61 61

  
62
_OPCODE_ATTRS = _BuildOpcodeAttributes()
62
OPCODE_ATTRS = _BuildOpcodeAttributes()
63 63

  
64 64

  
65 65
def BuildUriList(ids, uri_format, uri_fields=("name", "uri")):
......
403 403

  
404 404
  """
405 405
  return frozenset(filter(None, (getattr(cls, op_attr, None)
406
                                 for (_, op_attr, _, _) in _OPCODE_ATTRS)))
406
                                 for (_, op_attr, _, _) in OPCODE_ATTRS)))
407 407

  
408 408

  
409 409
def GetHandlerAccess(handler, method):
......
428 428
    # Access to private attributes of a client class, pylint: disable=W0212
429 429
    obj = type.__call__(mcs, *args, **kwargs)
430 430

  
431
    for (method, op_attr, rename_attr, fn_attr) in _OPCODE_ATTRS:
431
    for (method, op_attr, rename_attr, fn_attr) in OPCODE_ATTRS:
432 432
      if hasattr(obj, method):
433 433
        # If the method handler is already defined, "*_RENAME" or "Get*OpInput"
434 434
        # shouldn't be (they're only used by the automatically generated

Also available in: Unified diff