summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-10-03 21:27:35 (GMT)
committerGitHub <noreply@github.com>2019-10-03 21:27:35 (GMT)
commit4de3fbe27f672dcd9c24d3e99258f39b12c365a5 (patch)
treec8a7de6907b58c8c2253ee90a943795d3c835f58
parentf9016e5fc9424d41c8e53de84f8699e78769a14a (diff)
downloadcpython-4de3fbe27f672dcd9c24d3e99258f39b12c365a5.zip
cpython-4de3fbe27f672dcd9c24d3e99258f39b12c365a5.tar.gz
cpython-4de3fbe27f672dcd9c24d3e99258f39b12c365a5.tar.bz2
bpo-34344 Fix AbstractEventLoopPolicy.get_event_loop docstring (GH-16463)
(cherry picked from commit b23a8423a923077e4f83d3f328bb7542b4c940ed) Co-authored-by: idomic <michael.ido@gmail.com>
-rw-r--r--Lib/asyncio/events.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/asyncio/events.py b/Lib/asyncio/events.py
index e4e6322..e8a6a1b 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