mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
bpo-34344 Fix AbstractEventLoopPolicy.get_event_loop docstring (GH-16463)
This commit is contained in:
parent
353fb1ecbf
commit
b23a8423a9
1 changed files with 2 additions and 2 deletions
|
@ -630,9 +630,9 @@ class BaseDefaultEventLoopPolicy(AbstractEventLoopPolicy):
|
||||||
self._local = self._Local()
|
self._local = self._Local()
|
||||||
|
|
||||||
def get_event_loop(self):
|
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
|
if (self._local._loop is None and
|
||||||
not self._local._set_called and
|
not self._local._set_called and
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue