@_translate_failures
    def release(self):
        if self.coord._acquired_locks in self:
            lock_url = self._lock_url
            lock_url += "?prevIndex=%s" % self._node['modifiedIndex']
            reply = self.client.delete(lock_url, make_url=False)
            errorcode = reply.get("errorCode")
            if errorcode is None:
                self.coord._acquired_locks.remove(self)
                self._node = None
                return True
            else:
                LOG.warn("Unable to release '%s' due to %d, %s",
                         self.name, errorcode, reply.get('message'))
        return False
dataset/ETHPy150Open openstack/tooz/tooz/drivers/etcd.py/EtcdLock.release/swapped operands of `in`