[Python-checkins] Fix typo in exception message in `multiprocessing.pool` (#99900)

kumaraditya303 webhook-mailer at python.org
Wed Nov 30 10:27:34 EST 2022


https://github.com/python/cpython/commit/a694b8222e8b0683682958222699953379fd2d48
commit: a694b8222e8b0683682958222699953379fd2d48
branch: main
author: Arne de Laat <arne at delaat.net>
committer: kumaraditya303 <59607654+kumaraditya303 at users.noreply.github.com>
date: 2022-11-30T20:57:28+05:30
summary:

Fix typo in exception message in `multiprocessing.pool` (#99900)

files:
M Lib/multiprocessing/pool.py

diff --git a/Lib/multiprocessing/pool.py b/Lib/multiprocessing/pool.py
index 961d7e599184..4f5d88cb975c 100644
--- a/Lib/multiprocessing/pool.py
+++ b/Lib/multiprocessing/pool.py
@@ -696,7 +696,7 @@ def _terminate_pool(cls, taskqueue, inqueue, outqueue, pool, change_notifier,
 
         if (not result_handler.is_alive()) and (len(cache) != 0):
             raise AssertionError(
-                "Cannot have cache with result_hander not alive")
+                "Cannot have cache with result_handler not alive")
 
         result_handler._state = TERMINATE
         change_notifier.put(None)



More information about the Python-checkins mailing list