]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
#17091: update docstring for _thread.Lock.acquire.
authorR David Murray <rdmurray@bitdance.com>
Mon, 4 Feb 2013 15:15:58 +0000 (10:15 -0500)
committerR David Murray <rdmurray@bitdance.com>
Mon, 4 Feb 2013 15:15:58 +0000 (10:15 -0500)
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.

Modules/_threadmodule.c

index 5f76a7b6c2ff1c5ecdbc3289f8d43a7300c3d9cd..4f8ec2d82e31cce8bef4ec5fe6834c49dbd53865 100644 (file)
@@ -138,12 +138,12 @@ lock_PyThread_acquire_lock(lockobject *self, PyObject *args, PyObject *kwds)
 }
 
 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 interruptible.");