summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/unix_events.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2021-09-04 17:54:50 (GMT)
committerGitHub <noreply@github.com>2021-09-04 17:54:50 (GMT)
commitc967bd523caabb05bf5988449487d7c1717f3ac6 (patch)
tree9285bd67b942ee453f0d007130c2a1f45706a927 /Lib/asyncio/unix_events.py
parentce83e42437b8e5a4bf4237f981a7a90401922456 (diff)
downloadcpython-c967bd523caabb05bf5988449487d7c1717f3ac6.zip
cpython-c967bd523caabb05bf5988449487d7c1717f3ac6.tar.gz
cpython-c967bd523caabb05bf5988449487d7c1717f3ac6.tar.bz2
[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.
Diffstat (limited to 'Lib/asyncio/unix_events.py')
-rw-r--r--Lib/asyncio/unix_events.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/unix_events.py b/Lib/asyncio/unix_events.py
index 3efa669..56fcc08 100644
--- a/Lib/asyncio/unix_events.py
+++ b/Lib/asyncio/unix_events.py
@@ -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