(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
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
        """
        try:
            return self._l.acquire(blocking=blocking, timeout=timeout)
        except NoNodeError:
            raise UserWarning(
                "Timeout of %s seconds is too short to acquire lock" % timeout)
        except LockTimeout:
            return False
def acquire ( self , blocking = False , timeout = None ) : try : return self . _l . acquire ( blocking = blocking , timeout = timeout ) except NoNodeError : raise UserWarning ( "Timeout of %s seconds is too short to acquire lock" % timeout ) except LockTimeout : return False