summaryrefslogtreecommitdiff
path: root/searx/unixthreadname.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/unixthreadname.py')
-rw-r--r--searx/unixthreadname.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/searx/unixthreadname.py b/searx/unixthreadname.py
deleted file mode 100644
index b335b1650..000000000
--- a/searx/unixthreadname.py
+++ /dev/null
@@ -1,21 +0,0 @@
-# SPDX-License-Identifier: AGPL-3.0-or-later
-"""
-if setproctitle is installed.
-set Unix thread name with the Python thread name
-"""
-
-try:
- import setproctitle
-except ImportError:
- pass
-else:
- import threading
-
- old_thread_init = threading.Thread.__init__
-
- def new_thread_init(self, *args, **kwargs):
- # pylint: disable=protected-access, disable=c-extension-no-member
- old_thread_init(self, *args, **kwargs)
- setproctitle.setthreadtitle(self._name)
-
- threading.Thread.__init__ = new_thread_init