[Python-checkins] Fix typo in Lib/concurrent/futures/thread.py (GH-13953)

Miss Islington (bot) webhook-mailer at python.org
Sat Jun 15 08:11:19 EDT 2019


https://github.com/python/cpython/commit/d799fd34689f61560891339677200c225176796e
commit: d799fd34689f61560891339677200c225176796e
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019-06-15T05:11:15-07:00
summary:

Fix typo in Lib/concurrent/futures/thread.py (GH-13953)

(cherry picked from commit 552ace7498722f1add9f3782751b0d365f4c24c8)

Co-authored-by: ubordignon <48903745+ubordignon at users.noreply.github.com>

files:
M Lib/concurrent/futures/process.py
M Lib/concurrent/futures/thread.py

diff --git a/Lib/concurrent/futures/process.py b/Lib/concurrent/futures/process.py
index 6c6905380eff..9106552c5d06 100644
--- a/Lib/concurrent/futures/process.py
+++ b/Lib/concurrent/futures/process.py
@@ -504,7 +504,7 @@ def __init__(self, max_workers=None, mp_context=None,
                 worker processes will be created as the machine has processors.
             mp_context: A multiprocessing context to launch the workers. This
                 object should provide SimpleQueue, Queue and Process.
-            initializer: An callable used to initialize worker processes.
+            initializer: A callable used to initialize worker processes.
             initargs: A tuple of arguments to pass to the initializer.
         """
         _check_system_limits()
diff --git a/Lib/concurrent/futures/thread.py b/Lib/concurrent/futures/thread.py
index c7c9ef44c60b..9e3fb8b69294 100644
--- a/Lib/concurrent/futures/thread.py
+++ b/Lib/concurrent/futures/thread.py
@@ -118,7 +118,7 @@ def __init__(self, max_workers=None, thread_name_prefix='',
             max_workers: The maximum number of threads that can be used to
                 execute the given calls.
             thread_name_prefix: An optional name prefix to give our threads.
-            initializer: An callable used to initialize worker threads.
+            initializer: A callable used to initialize worker threads.
             initargs: A tuple of arguments to pass to the initializer.
         """
         if max_workers is None:



More information about the Python-checkins mailing list