[Python-checkins] bpo-34344 Fix AbstractEventLoopPolicy.get_event_loop docstring (GH-16463)

Yury Selivanov webhook-mailer at python.org
Thu Oct 3 17:08:35 EDT 2019


https://github.com/python/cpython/commit/b23a8423a923077e4f83d3f328bb7542b4c940ed
commit: b23a8423a923077e4f83d3f328bb7542b4c940ed
branch: master
author: idomic <michael.ido at gmail.com>
committer: Yury Selivanov <yury at magic.io>
date: 2019-10-03T17:08:29-04:00
summary:

bpo-34344 Fix AbstractEventLoopPolicy.get_event_loop docstring (GH-16463)

files:
M Lib/asyncio/events.py

diff --git a/Lib/asyncio/events.py b/Lib/asyncio/events.py
index 2f06c4ae795d2..36b7ea307e03b 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



More information about the Python-checkins mailing list