From bcba2d3fb0c8ea593ae2f179e78be1bee0f9d056 Mon Sep 17 00:00:00 2001 From: idomic Date: Fri, 4 Oct 2019 00:08:29 +0300 Subject: [PATCH] bpo-34344 Fix AbstractEventLoopPolicy.get_event_loop docstring (GH-16463) (cherry picked from commit b23a8423a923077e4f83d3f328bb7542b4c940ed) Co-authored-by: idomic --- Lib/asyncio/events.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/asyncio/events.py b/Lib/asyncio/events.py index e4e632206af1bc..e8a6a1beeab9b0 100644 --- a/Lib/asyncio/events.py +++ b/Lib/asyncio/events.py @@ -630,9 +630,9 @@ def __init__(self): self._local = self._Local() def get_event_loop(self): - """Get the event loop. + """Get the event loop for the current context. - This may be None or an instance of EventLoop. + Returns an instance of EventLoop or raises an exception. """ if (self._local._loop is None and not self._local._set_called and