Browse Source

fix: typo in dequeue

develop
lanvent 1 year ago
parent
commit
f652d592bd
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      common/dequeue.py

+ 2
- 2
common/dequeue.py View File

@@ -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)

Loading…
Cancel
Save