From 7af922c9dfff6e60974eb2dfcb1399f4573820f4 Mon Sep 17 00:00:00 2001 From: Ivan Gabaldon Date: Thu, 6 Nov 2025 10:09:10 +0100 Subject: [enh] py: drop deps (#5407) The difference between decompression with brotli or gzip in HTML files is negligible for 3 MB of compiled binary package. Introduced in https://github.com/searxng/searxng/commit/eaa694fb7d0e47b943bc6d6edb6cb6a40ab2d85e Closes https://github.com/searxng/searxng/security/code-scanning/276 Closes https://github.com/searxng/searxng/security/dependabot/37 --- searx/unixthreadname.py | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 searx/unixthreadname.py (limited to 'searx/unixthreadname.py') 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 -- cgit v1.2.3