]> granicus.if.org Git - python/commitdiff
bpo-34344 Fix AbstractEventLoopPolicy.get_event_loop docstring (GH-16463)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 3 Oct 2019 21:26:57 +0000 (14:26 -0700)
committerGitHub <noreply@github.com>
Thu, 3 Oct 2019 21:26:57 +0000 (14:26 -0700)
(cherry picked from commit b23a8423a923077e4f83d3f328bb7542b4c940ed)

Co-authored-by: idomic <michael.ido@gmail.com>
Lib/asyncio/events.py

index d381b1c596239ce4540927e5b0d301886f4530ca..ca08663a5b3586382ac620c07e6248f91583b2e3 100644 (file)
@@ -626,9 +626,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