]> granicus.if.org Git - python/commitdiff
bpo-34344 Fix AbstractEventLoopPolicy.get_event_loop docstring (GH-16463)
authoridomic <michael.ido@gmail.com>
Thu, 3 Oct 2019 21:08:29 +0000 (00:08 +0300)
committerYury Selivanov <yury@magic.io>
Thu, 3 Oct 2019 21:08:29 +0000 (17:08 -0400)
Lib/asyncio/events.py

index 2f06c4ae795d2ad16b29959f2555a1e34cb07af2..36b7ea307e03bf082fa73f46e872713c86444996 100644 (file)
@@ -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