mirror of
https://github.com/python/cpython.git
synced 2025-08-28 04:35:02 +00:00
[3.9] bpo-45097: Remove incorrect deprecation warnings in asyncio. (GH-28153)
Deprecation warnings about the loop argument were incorrectly emitted in cases when the loop argument was used inside the asyncio library, not from user code.
This commit is contained in:
parent
ce83e42437
commit
c967bd523c
11 changed files with 234 additions and 181 deletions
|
@ -323,7 +323,7 @@ class _UnixSelectorEventLoop(selector_events.BaseSelectorEventLoop):
|
|||
server._start_serving()
|
||||
# Skip one loop iteration so that all 'loop.add_reader'
|
||||
# go through.
|
||||
await tasks.sleep(0, loop=self)
|
||||
await tasks.sleep(0)
|
||||
|
||||
return server
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue