From: Tim Peters Date: Sun, 1 Aug 2004 23:26:05 +0000 (+0000) Subject: lock_held() docs: Use True/False instead of 1/0. The LaTeX docs were X-Git-Tag: v2.4a2~84 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a7c650934d8e3b62d7e0b2aeaf30fd486922d484;p=python lock_held() docs: Use True/False instead of 1/0. The LaTeX docs were already correct, so not changed here. --- diff --git a/Python/import.c b/Python/import.c index aa16b194ac..aa0b5c2824 100644 --- a/Python/import.c +++ b/Python/import.c @@ -2692,9 +2692,9 @@ Create a new module. Do not enter it in sys.modules.\n\ The module name must include the full package name, if any."); PyDoc_STRVAR(doc_lock_held, -"lock_held() -> 0 or 1\n\ -Return 1 if the import lock is currently held.\n\ -On platforms without threads, return 0."); +"lock_held() -> boolean\n\ +Return True if the import lock is currently held, else False.\n\ +On platforms without threads, return False."); PyDoc_STRVAR(doc_acquire_lock, "acquire_lock() -> None\n\