From 3d96a9839a12649874b6d4cf9466bd3616b0a03c Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Mon, 27 Dec 2021 09:26:22 +0100 Subject: [format.python] initial formatting of the python code This patch was generated by black [1]:: make format.python [1] https://github.com/psf/black Signed-off-by: Markus Heiser --- searx/unixthreadname.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'searx/unixthreadname.py') diff --git a/searx/unixthreadname.py b/searx/unixthreadname.py index 0f1f54936..3c2a68917 100644 --- a/searx/unixthreadname.py +++ b/searx/unixthreadname.py @@ -11,10 +11,12 @@ 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