summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandro Tosi <sandro.tosi@gmail.com>2012-04-05 22:51:00 +0200
committerSandro Tosi <sandro.tosi@gmail.com>2012-04-05 22:51:00 +0200
commitceeb47d0c33b6875e253517140142a4d7f056790 (patch)
treec634d1b70cc85f3479d04f0034eedc75758b7431
parent02a380105d4cd31219d2dc468f277688973ec2bd (diff)
downloadcpython-git-ceeb47d0c33b6875e253517140142a4d7f056790.tar.gz
Issue #14502: release() and unlocked lock generates a ThreadError
-rw-r--r--Doc/library/threading.rst2
1 files changed, 1 insertions, 1 deletions
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.