(self, blocking=False, timeout=None)
return acquired
Acquire a lock at the Lock's path.
        Return True if acquired, False otherwise

        `blocking` (bool) If False, return immediately if we got lock.
            If True, wait up to `timeout` seconds to acquire a lock
        `timeout` (int) number of seconds.  By default, wait indefinitely
Acquire a lock at the Lock's path.
        Return True if acquired, False otherwise
Acquire a lock at the Lock s path . Return True if acquired False otherwise
def acquire(self, blocking=False, timeout=None):
        """
        Acquire a lock at the Lock's path.
        Return True if acquired, False otherwise

        `blocking` (bool) If False, return immediately if we got lock.
            If True, wait up to `timeout` seconds to acquire a lock
        `timeout` (int) number of seconds.  By default, wait indefinitely
        """
        if not blocking:
            timeout = None
        with timeout_cm(timeout):
            acquired = self._acquire(self._path, self._client_id, nx=True)

        if acquired:
            self.LOCKS[self._path] = self._client_id
        return acquired
def acquire ( self , blocking = False , timeout = None ) : if not blocking : timeout = None with timeout_cm ( timeout ) : acquired = self . _acquire ( self . _path , self . _client_id , nx = True ) if acquired : self . LOCKS [ self . _path ] = self . _client_id return acquired