bpo-46796: Simplify handling of removed parameter "loop" in asyncio (GH-31431)

This commit is contained in:
Serhiy Storchaka 2022-02-21 13:25:52 +02:00 committed by GitHub
parent be095f6c32
commit 195a46d6ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 24 deletions

View file

@ -30,8 +30,7 @@ class Queue(mixins._LoopBoundMixin):
interrupted between calling qsize() and doing an operation on the Queue.
"""
def __init__(self, maxsize=0, *, loop=mixins._marker):
super().__init__(loop=loop)
def __init__(self, maxsize=0):
self._maxsize = maxsize
# Futures.