mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
gh-90879: Fix missing parameter for put_nowait() (GH-91514)
(cherry picked from commit 0fc3517cf4)
Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
This commit is contained in:
parent
72114c06fd
commit
52ce75fc1e
2 changed files with 3 additions and 3 deletions
|
|
@ -298,7 +298,7 @@ def get(self, block=True, timeout=None):
|
|||
def put_nowait(self, item):
|
||||
'''Put an item into the queue without blocking.
|
||||
|
||||
This is exactly equivalent to `put(item)` and is only provided
|
||||
This is exactly equivalent to `put(item, block=False)` and is only provided
|
||||
for compatibility with the Queue class.
|
||||
'''
|
||||
return self.put(item, block=False)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue