Skip to content

Commit a41a557

Browse files
webknjazpR0Psjarus
committed
Merge PR #503
Since the refactoring 7af66b0 the Cheroot worker threads are named like `('CP Server Thread-<id>',)`. A leftover comma transformed the string to a tuple. This patch fixes this by removing the trailing comma when setting the thread name as `str`. Ref: * #503 * #516 Co-Authored-By: Carey Metcalfe <[email protected]> Co-Authored-By: Christoph Heer <[email protected]>
2 parents 2404795 + 6b7c030 commit a41a557

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cheroot/workers/threadpool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def start(self):
178178
for worker in self._threads:
179179
worker.name = (
180180
'CP Server {worker_name!s}'.
181-
format(worker_name=worker.name),
181+
format(worker_name=worker.name)
182182
)
183183
worker.start()
184184
for worker in self._threads:
@@ -228,7 +228,7 @@ def _spawn_worker(self):
228228
worker = WorkerThread(self.server)
229229
worker.name = (
230230
'CP Server {worker_name!s}'.
231-
format(worker_name=worker.name),
231+
format(worker_name=worker.name)
232232
)
233233
worker.start()
234234
return worker

0 commit comments

Comments
 (0)