diff options
author | Chris Brett <chrisbrett665@gmail.com> | 2023-07-13 07:51:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-13 07:51:13 (GMT) |
commit | 4b4a5b70aa8d47b1e2a0582b741c31b786da762a (patch) | |
tree | 641ea03777e9b9ba76ab67f5420058612bfffa42 /Lib/asyncio | |
parent | 7e6ce48872fa3de98c986057764f35e1b2f4b936 (diff) | |
download | cpython-4b4a5b70aa8d47b1e2a0582b741c31b786da762a.zip cpython-4b4a5b70aa8d47b1e2a0582b741c31b786da762a.tar.gz cpython-4b4a5b70aa8d47b1e2a0582b741c31b786da762a.tar.bz2 |
gh-106634: Corrected minor asyncio doc issues (#106671)
Diffstat (limited to 'Lib/asyncio')
-rw-r--r-- | Lib/asyncio/base_events.py | 2 | ||||
-rw-r--r-- | Lib/asyncio/events.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py index f650e6b..b092c93 100644 --- a/Lib/asyncio/base_events.py +++ b/Lib/asyncio/base_events.py @@ -727,7 +727,7 @@ class BaseEventLoop(events.AbstractEventLoop): always relative to the current time. Each callback will be called exactly once. If two callbacks - are scheduled for exactly the same time, it undefined which + are scheduled for exactly the same time, it is undefined which will be called first. Any positional arguments after the callback will be passed to diff --git a/Lib/asyncio/events.py b/Lib/asyncio/events.py index ce44942..0ccf851 100644 --- a/Lib/asyncio/events.py +++ b/Lib/asyncio/events.py @@ -617,7 +617,7 @@ class AbstractEventLoopPolicy: def get_event_loop(self): """Get the event loop for the current context. - Returns an event loop object implementing the BaseEventLoop interface, + Returns an event loop object implementing the AbstractEventLoop interface, or raises an exception in case no event loop has been set for the current context and the current policy does not specify to create one. |