Skip to content

Commit 811724c

Browse files
committed
merge #17091: update docstring for _thread.Lock.acquire.
2 parents 034a3b5 + b7be42b commit 811724c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/_threadmodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,12 @@ lock_PyThread_acquire_lock(lockobject *self, PyObject *args, PyObject *kwds)
145145
}
146146

147147
PyDoc_STRVAR(acquire_doc,
148-
"acquire([wait]) -> None or bool\n\
148+
"acquire([wait]) -> bool\n\
149149
(acquire_lock() is an obsolete synonym)\n\
150150
\n\
151151
Lock the lock. Without argument, this blocks if the lock is already\n\
152152
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\
153+
the lock, and return True once the lock is acquired.\n\
154154
With an argument, this will only block if the argument is true,\n\
155155
and the return value reflects whether the lock is acquired.\n\
156156
The blocking operation is interruptible.");

0 commit comments

Comments
 (0)