From ceeb47d0c33b6875e253517140142a4d7f056790 Mon Sep 17 00:00:00 2001 From: Sandro Tosi Date: Thu, 5 Apr 2012 22:51:00 +0200 Subject: [PATCH] Issue #14502: release() and unlocked lock generates a ThreadError --- Doc/library/threading.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/threading.rst b/Doc/library/threading.rst index 28a3f8177e..89434b6efd 100644 --- a/Doc/library/threading.rst +++ b/Doc/library/threading.rst @@ -420,7 +420,7 @@ All methods are executed atomically. are blocked waiting for the lock to become unlocked, allow exactly one of them to proceed. - Do not call this method when the lock is unlocked. + When invoked on an unlocked lock, a :exc:`ThreadError` is raised. There is no return value. -- 2.50.1