From 422d1fe8f9d0f75339b787527ed147bfa4df8d00 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 29 Jul 2025 13:00:48 +0530 Subject: [PATCH] Rely on python setting thread names on new enough python --- src/calibre/startup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/startup.py b/src/calibre/startup.py index be16e830bd..1273e3a018 100644 --- a/src/calibre/startup.py +++ b/src/calibre/startup.py @@ -174,9 +174,9 @@ def initialize_calibre(): 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 - # http://bugs.python.org/issue15500 + # https://github.com/python/cpython/issues/59705 import threading from calibre_extensions import speedup