Commit 381372d1 authored by R David Murray's avatar R David Murray

#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.
parent 28ababcd
...@@ -56,12 +56,12 @@ lock_PyThread_acquire_lock(lockobject *self, PyObject *args) ...@@ -56,12 +56,12 @@ lock_PyThread_acquire_lock(lockobject *self, PyObject *args)
} }
PyDoc_STRVAR(acquire_doc, PyDoc_STRVAR(acquire_doc,
"acquire([wait]) -> None or bool\n\ "acquire([wait]) -> bool\n\
(acquire_lock() is an obsolete synonym)\n\ (acquire_lock() is an obsolete synonym)\n\
\n\ \n\
Lock the lock. Without argument, this blocks if the lock is already\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\ 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\ With an argument, this will only block if the argument is true,\n\
and the return value reflects whether the lock is acquired.\n\ and the return value reflects whether the lock is acquired.\n\
The blocking operation is not interruptible."); The blocking operation is not interruptible.");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment