def get(self, block=True, timeout=None):
        if not block:
            return self.get_nowait()

        start_time = time.time()
        while True:
            try:
                return self.get_nowait()
            except self.Empty:
                if timeout:
                    lasted = time.time() - start_time
                    if timeout > lasted:
                        time.sleep(min(self.max_timeout, lasted - timeout))
                    else:
                        raise
                else:
                    time.sleep(self.max_timeout)
dataset/ETHPy150Open binux/pyspider/pyspider/message_queue/redis_queue.py/RedisQueue.get/swapped operands of `-`