def is_owned(self, shared=-1):
    self.__lock.acquire()
    try:
      return self.__is_owned(shared=shared)
    finally:
      self.__lock.release()

  #: Necessary to remain compatible with threading.Condition, which tries to
  #: retrieve a locks' "_is_owned" attribute
Validate Requests.
dataset/ETHPy150Open ganeti/ganeti/lib/locking.py/SharedLock.is_owned--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/test/test_sip.py/MessageParsingTestCase.validateMessage