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

Miss Islington (bot) webhook-mailer at python.org
Thu Oct 3 17:27:39 EDT 2019


https://github.com/python/cpython/commit/4de3fbe27f672dcd9c24d3e99258f39b12c365a5
commit: 4de3fbe27f672dcd9c24d3e99258f39b12c365a5
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019-10-03T14:27:35-07:00
summary:

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

(cherry picked from commit b23a8423a923077e4f83d3f328bb7542b4c940ed)

Co-authored-by: idomic <michael.ido at gmail.com>

files:
M Lib/asyncio/events.py

diff --git a/Lib/asyncio/events.py b/Lib/asyncio/events.py
index e4e632206af1b..e8a6a1beeab9b 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