There was an error while loading. Please reload this page.
2 parents 034a3b5 + b7be42b commit 811724cCopy full SHA for 811724c
1 file changed
Modules/_threadmodule.c
@@ -145,12 +145,12 @@ lock_PyThread_acquire_lock(lockobject *self, PyObject *args, PyObject *kwds)
145
}
146
147
PyDoc_STRVAR(acquire_doc,
148
-"acquire([wait]) -> None or bool\n\
+"acquire([wait]) -> bool\n\
149
(acquire_lock() is an obsolete synonym)\n\
150
\n\
151
Lock the lock. Without argument, this blocks if the lock is already\n\
152
locked (even by the same thread), waiting for another thread to release\n\
153
-the lock, and return None once the lock is acquired.\n\
+the lock, and return True once the lock is acquired.\n\
154
With an argument, this will only block if the argument is true,\n\
155
and the return value reflects whether the lock is acquired.\n\
156
The blocking operation is interruptible.");
0 commit comments