Skip to content

Commit a30382b

Browse files
committed
Remove the confusing except clause in the threading wait docstring
1 parent 1cd8571 commit a30382b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Doc/library/threading.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -992,9 +992,8 @@ method. The :meth:`~Event.wait` method blocks until the flag is true.
992992
(or fractions thereof).
993993

994994
This method returns ``True`` if and only if the internal flag has been set to
995-
true, either before the wait call or after the wait starts, so it will
996-
always return ``True`` except if a timeout is given and the operation
997-
times out. If such a timeout occurs, ``False`` will be returned.
995+
true, either before the wait call or after the wait starts.
996+
If a timeout is given and the operation times out, ``False`` will be returned.
998997

999998
.. versionchanged:: 3.1
1000999
Previously, the method always returned ``None``.

0 commit comments

Comments
 (0)