From 6b7c030fd7f35a428f9ccbf1b9f14bf073bca91e Mon Sep 17 00:00:00 2001 From: Christoph Heer Date: Fri, 22 Apr 2022 16:22:59 +0200 Subject: [PATCH] Set worker thread names as str Since the refactoring 7af66b0 the Cheroot worker threads are named like "('CP Server Thread-9',)". A leftover comma transformed the string to a tuple. --- cheroot/workers/threadpool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cheroot/workers/threadpool.py b/cheroot/workers/threadpool.py index 795ebc6d53..bd784b85ff 100644 --- a/cheroot/workers/threadpool.py +++ b/cheroot/workers/threadpool.py @@ -178,7 +178,7 @@ def start(self): for worker in self._threads: worker.name = ( 'CP Server {worker_name!s}'. - format(worker_name=worker.name), + format(worker_name=worker.name) ) worker.start() for worker in self._threads: @@ -228,7 +228,7 @@ def _spawn_worker(self): worker = WorkerThread(self.server) worker.name = ( 'CP Server {worker_name!s}'. - format(worker_name=worker.name), + format(worker_name=worker.name) ) worker.start() return worker