From 8f683b94d52c5db2b35ff05f56404e8384ffb3bf Mon Sep 17 00:00:00 2001 From: Jeong YunWon Date: Wed, 17 Aug 2022 02:03:51 +0900 Subject: [PATCH] Add _dummy_thread._count --- Lib/_dummy_thread.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Lib/_dummy_thread.py b/Lib/_dummy_thread.py index 293669f35..988847ebf 100644 --- a/Lib/_dummy_thread.py +++ b/Lib/_dummy_thread.py @@ -14,7 +14,8 @@ Suggested usage is:: # Exports only things specified by thread documentation; # skipping obsolete synonyms allocate(), start_new(), exit_thread(). __all__ = ['error', 'start_new_thread', 'exit', 'get_ident', 'allocate_lock', - 'interrupt_main', 'LockType', 'RLock'] + 'interrupt_main', 'LockType', 'RLock', + '_count'] # A dummy value TIMEOUT_MAX = 2**31 @@ -85,6 +86,10 @@ def _set_sentinel(): """Dummy implementation of _thread._set_sentinel().""" return LockType() +def _count(): + """Dummy implementation of _thread._count().""" + return 0 + class LockType(object): """Class implementing dummy implementation of _thread.LockType.