summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio
diff options
context:
space:
mode:
authoridomic <michael.ido@gmail.com>2019-10-03 21:08:29 (GMT)
committerYury Selivanov <yury@magic.io>2019-10-03 21:08:29 (GMT)
commitb23a8423a923077e4f83d3f328bb7542b4c940ed (patch)
treef0be55690ba027f405a6a5441051133237435e23 /Lib/asyncio
parent353fb1ecbfd58752dabae115c4964095e1e35e5f (diff)
downloadcpython-b23a8423a923077e4f83d3f328bb7542b4c940ed.zip
cpython-b23a8423a923077e4f83d3f328bb7542b4c940ed.tar.gz
cpython-b23a8423a923077e4f83d3f328bb7542b4c940ed.tar.bz2
bpo-34344 Fix AbstractEventLoopPolicy.get_event_loop docstring (GH-16463)
Diffstat (limited to 'Lib/asyncio')
-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 2f06c4a..36b7ea3 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