Mercurial > cpython-lru_cache-weakref
diff Modules/threadmodule.c @ 82006:20f0c5398e97 2.7
#17091: update docstring for _thread.Lock.acquire.
The main docs were fixed to remove mention of None long ago,
but the docstring was not. Reported by Armin Rigo, patch
by Ian Cordasco.
| author | R David Murray <rdmurray@bitdance.com> |
|---|---|
| date | Mon, 04 Feb 2013 10:29:38 -0500 |
| parents | d552016fc07c |
| children |
line wrap: on
line diff
--- a/Modules/threadmodule.c Mon Feb 04 15:19:21 2013 +0200 +++ b/Modules/threadmodule.c Mon Feb 04 10:29:38 2013 -0500 @@ -56,12 +56,12 @@ } PyDoc_STRVAR(acquire_doc, -"acquire([wait]) -> None or bool\n\ +"acquire([wait]) -> bool\n\ (acquire_lock() is an obsolete synonym)\n\ \n\ Lock the lock. Without argument, this blocks if the lock is already\n\ locked (even by the same thread), waiting for another thread to release\n\ -the lock, and return None once the lock is acquired.\n\ +the lock, and return True once the lock is acquired.\n\ With an argument, this will only block if the argument is true,\n\ and the return value reflects whether the lock is acquired.\n\ The blocking operation is not interruptible.");
