Revision c70d2d9b lib/locking.py

b/lib/locking.py
20 20

  
21 21
"""Module implementing the Ganeti locking code."""
22 22

  
23
# pylint: disable-msg=W0613,W0201
23
# pylint: disable-msg=W0212
24

  
25
# W0212 since e.g. LockSet methods use (a lot) the internals of
26
# SharedLock
24 27

  
25 28
import threading
26 29
# Wouldn't it be better to define LockingError in the locking module?
......
761 764
    """
762 765
    return BGL in self.__keyring[LEVEL_CLUSTER]._list_owned()
763 766

  
764
  def _contains_BGL(self, level, names): # pylint: disable-msg=C0103
767
  @staticmethod
768
  def _contains_BGL(level, names): # pylint: disable-msg=C0103
765 769
    """Check if the level contains the BGL.
766 770

  
767 771
    Check if acting on the given level and set of names will change

Also available in: Unified diff