Skip to content
Snippets Groups Projects
Unverified Commit 0fc3517c authored by slateny's avatar slateny Committed by GitHub
Browse files

gh-90879: Fix missing parameter for put_nowait() (GH-91514)

parent 13b17e2a
No related branches found
No related tags found
No related merge requests found
...@@ -138,7 +138,7 @@ provide the public methods described below. ...@@ -138,7 +138,7 @@ provide the public methods described below.
.. method:: Queue.put_nowait(item) .. method:: Queue.put_nowait(item)
Equivalent to ``put(item, False)``. Equivalent to ``put(item, block=False)``.
.. method:: Queue.get(block=True, timeout=None) .. method:: Queue.get(block=True, timeout=None)
...@@ -248,7 +248,7 @@ SimpleQueue Objects ...@@ -248,7 +248,7 @@ SimpleQueue Objects
.. method:: SimpleQueue.put_nowait(item) .. method:: SimpleQueue.put_nowait(item)
Equivalent to ``put(item)``, provided for compatibility with Equivalent to ``put(item, block=False)``, provided for compatibility with
:meth:`Queue.put_nowait`. :meth:`Queue.put_nowait`.
......
...@@ -298,7 +298,7 @@ def get(self, block=True, timeout=None): ...@@ -298,7 +298,7 @@ def get(self, block=True, timeout=None):
def put_nowait(self, item): def put_nowait(self, item):
'''Put an item into the queue without blocking. '''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. for compatibility with the Queue class.
''' '''
return self.put(item, block=False) return self.put(item, block=False)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment