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

This commit is contained in:
slateny 2022-04-14 01:23:57 -07:00 committed by GitHub
parent 13b17e2a0a
commit 0fc3517cf4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

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