

@contextlib.contextmanager
def acquire(self, key=None, value=None):
    'A context manager that allows you to acquire the lock, optionally\n        passing in a key and/or value.\n\n        :param str key: The key to lock\n        :param str value: The value to set in the lock\n        :raises: :exc:`~consulate.exception.LockError`\n\n        '
    key._acquire(key, value)
    (yield)
    self._release()

dataset/ETHPy150Open gmr/consulate/consulate/api/lock.py Lock.acquire/VarMisuse@25/131 `self`->`key`