]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo in Lib/concurrent/futures/thread.py (GH-13953)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 15 Jun 2019 12:11:15 +0000 (05:11 -0700)
committerGitHub <noreply@github.com>
Sat, 15 Jun 2019 12:11:15 +0000 (05:11 -0700)
(cherry picked from commit 552ace7498722f1add9f3782751b0d365f4c24c8)

Co-authored-by: ubordignon <48903745+ubordignon@users.noreply.github.com>
Lib/concurrent/futures/process.py
Lib/concurrent/futures/thread.py

index 6c6905380eff2eba75ac246e5b3869dce526ec08..9106552c5d06f5c7fb52269cc14149758fea327b 100644 (file)
@@ -504,7 +504,7 @@ class ProcessPoolExecutor(_base.Executor):
                 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()
index c7c9ef44c60b83e979699bc6cf2fe095dd1a0dce..9e3fb8b6929444d5f13a0a74c87e86ff7b1ab484 100644 (file)
@@ -118,7 +118,7 @@ class ThreadPoolExecutor(_base.Executor):
             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: