Skip to content

Commit 4de3fbe

Browse files
bpo-34344 Fix AbstractEventLoopPolicy.get_event_loop docstring (GH-16463)
(cherry picked from commit b23a842) Co-authored-by: idomic <michael.ido@gmail.com>
1 parent f9016e5 commit 4de3fbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/asyncio/events.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -630,9 +630,9 @@ def __init__(self):
630630
self._local = self._Local()
631631

632632
def get_event_loop(self):
633-
"""Get the event loop.
633+
"""Get the event loop for the current context.
634634
635-
This may be None or an instance of EventLoop.
635+
Returns an instance of EventLoop or raises an exception.
636636
"""
637637
if (self._local._loop is None and
638638
not self._local._set_called and

0 commit comments

Comments
 (0)