From f652d592bdd777ebd3813f826ad50d53f0cfc2c3 Mon Sep 17 00:00:00 2001 From: lanvent Date: Tue, 4 Apr 2023 15:10:35 +0800 Subject: [PATCH] fix: typo in dequeue --- common/dequeue.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/dequeue.py b/common/dequeue.py index 5881106..edc9ef0 100644 --- a/common/dequeue.py +++ b/common/dequeue.py @@ -26,8 +26,8 @@ class Dequeue(Queue): self.unfinished_tasks += 1 self.not_empty.notify() - def put_nowait(self, item): - return self.put(item, block=False) + def putleft_nowait(self, item): + return self.putleft(item, block=False) def _putleft(self, item): self.queue.appendleft(item) \ No newline at end of file