From ab93d88f1baa265f79f32e60442569a804bde3e6 Mon Sep 17 00:00:00 2001 From: rdb Date: Fri, 4 Aug 2023 14:28:52 +0200 Subject: [PATCH] stdpy: Remove obsolete check for None function on module shutdown This behaviour was removed in Python 3.4 so should no longer be an issue --- direct/src/stdpy/threading.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/direct/src/stdpy/threading.py b/direct/src/stdpy/threading.py index 96effd86b5..e4e7a1d24f 100644 --- a/direct/src/stdpy/threading.py +++ b/direct/src/stdpy/threading.py @@ -123,10 +123,7 @@ class Thread(ThreadBase): self.__dict__['ident'] = threadId def __del__(self): - # On interpreter shutdown, the _thread module might have - # already been cleaned up. - if _thread and _thread._remove_thread_id: - _thread._remove_thread_id(self.ident) + _thread._remove_thread_id(self.ident) def is_alive(self): thread = self.__thread