Rely on python setting thread names on new enough python

This commit is contained in:
Kovid Goyal 2025-07-29 13:00:48 +05:30
parent f259c80710
commit 422d1fe8f9
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -174,9 +174,9 @@ def initialize_calibre():
builtins.__dict__['connect_lambda'] = connect_lambda builtins.__dict__['connect_lambda'] = connect_lambda
if islinux or ismacos or isfreebsd: if sys.version_info[:2] < (3, 14) and (islinux or ismacos or isfreebsd):
# Name all threads at the OS level created using the threading module, see # Name all threads at the OS level created using the threading module, see
# http://bugs.python.org/issue15500 # https://github.com/python/cpython/issues/59705
import threading import threading
from calibre_extensions import speedup from calibre_extensions import speedup