def __can_acquire(self, shared):
    if shared:
      return self.__exc is None
    else:
      return len(self.__shr) == 0 and self.__exc is None
Bundles together an extractor, locator, and classifier
dataset/ETHPy150Open ganeti/ganeti/lib/locking.py/SharedLock.__can_acquire--crossover with--dataset/ETHPy150Open ChrisBeaumont/brut/bubbly/model.py/Model.__init__