mirror of
https://github.com/searxng/searxng.git
synced 2025-07-12 07:49:22 +02:00
[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 <markus.heiser@darmarit.de>
This commit is contained in:
parent
fcdc2c2cd2
commit
3d96a9839a
184 changed files with 2800 additions and 2836 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue