]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
BPO-42703: Fix incorrect documentation links for asyncio.Event (GH-23881)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 23 Dec 2020 11:14:27 +0000 (03:14 -0800)
committerGitHub <noreply@github.com>
Wed, 23 Dec 2020 11:14:27 +0000 (03:14 -0800)
(cherry picked from commit d90ff376813843310a6f9ccc96551fa1521e8fef)

Co-authored-by: Matt Fowler <matt.fow@gmail.com>
Doc/library/asyncio-sync.rst

index f080b03bc7c51ccc72c6daa254e344a80e5076be..c401fb50a5075167eb7cc3a32f2c08c38f2821ea 100644 (file)
@@ -104,8 +104,8 @@ Event
    that some event has happened.
 
    An Event object manages an internal flag that can be set to *true*
-   with the :meth:`set` method and reset to *false* with the
-   :meth:`clear` method.  The :meth:`wait` method blocks until the
+   with the :meth:`~Event.set` method and reset to *false* with the
+   :meth:`clear` method.  The :meth:`~Event.wait` method blocks until the
    flag is set to *true*.  The flag is set to *false* initially.
 
 
@@ -142,7 +142,7 @@ Event
       Wait until the event is set.
 
       If the event is set, return ``True`` immediately.
-      Otherwise block until another task calls :meth:`set`.
+      Otherwise block until another task calls :meth:`~Event.set`.
 
    .. method:: set()
 
@@ -155,8 +155,8 @@ Event
 
       Clear (unset) the event.
 
-      Tasks awaiting on :meth:`wait` will now block until the
-      :meth:`set` method is called again.
+      Tasks awaiting on :meth:`~Event.wait` will now block until the
+      :meth:`~Event.set` method is called again.
 
    .. method:: is_set()