From af52f80c71fda6e45af4d5ddb726aa7704c569f2 Mon Sep 17 00:00:00 2001 From: Kashiko Koibumi Date: Sat, 18 May 2024 23:27:06 +0900 Subject: [PATCH] fix to run with python3-prctl --- src/threads.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/threads.py b/src/threads.py index ac8bf7a6..db8f96e4 100644 --- a/src/threads.py +++ b/src/threads.py @@ -32,13 +32,6 @@ else: """Set the thread name for external use (visible from the OS).""" prctl.set_name(name) - def _thread_name_hack(self): - set_thread_name(self.name) - threading.Thread.__bootstrap_original__(self) - # pylint: disable=protected-access - threading.Thread.__bootstrap_original__ = threading.Thread._Thread__bootstrap - threading.Thread._Thread__bootstrap = _thread_name_hack - printLock = threading.Lock()