From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 3 Oct 2019 21:27:35 +0000 (-0700) Subject: bpo-34344 Fix AbstractEventLoopPolicy.get_event_loop docstring (GH-16463) X-Git-Tag: v3.7.5~19 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=88204a3908663a574919f9c17278bcabed0598fa;p=thirdparty%2FPython%2Fcpython.git bpo-34344 Fix AbstractEventLoopPolicy.get_event_loop docstring (GH-16463) (cherry picked from commit b23a8423a923077e4f83d3f328bb7542b4c940ed) Co-authored-by: idomic --- diff --git a/Lib/asyncio/events.py b/Lib/asyncio/events.py index e4e632206af1..e8a6a1beeab9 100644 --- a/Lib/asyncio/events.py +++ b/Lib/asyncio/events.py @@ -630,9 +630,9 @@ class BaseDefaultEventLoopPolicy(AbstractEventLoopPolicy): 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