summaryrefslogtreecommitdiffstats
path: root/Lib/queue.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-04-14 09:18:31 (GMT)
committerGitHub <noreply@github.com>2022-04-14 09:18:31 (GMT)
commit52ce75fc1ee31032ce64bee4f01f1c1e70b39c28 (patch)
treef38bf225d012a544f95348c4ab1e02829af88584 /Lib/queue.py
parent72114c06fd8f105437d671277b0593a378ecc3f4 (diff)
downloadcpython-52ce75fc1ee31032ce64bee4f01f1c1e70b39c28.zip
cpython-52ce75fc1ee31032ce64bee4f01f1c1e70b39c28.tar.gz
cpython-52ce75fc1ee31032ce64bee4f01f1c1e70b39c28.tar.bz2
gh-90879: Fix missing parameter for put_nowait() (GH-91514)
(cherry picked from commit 0fc3517cf46ec79b4681c31916d4081055a7ed09) Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
Diffstat (limited to 'Lib/queue.py')
-rw-r--r--Lib/queue.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/queue.py b/Lib/queue.py
index 10dbcbc..55f5008 100644
--- a/Lib/queue.py
+++ b/Lib/queue.py
@@ -298,7 +298,7 @@ class _PySimpleQueue:
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)