]> granicus.if.org Git - python/commitdiff
Fix typo in Lib/concurrent/futures/thread.py (GH-13953)
authorubordignon <48903745+ubordignon@users.noreply.github.com>
Sat, 15 Jun 2019 11:43:10 +0000 (13:43 +0200)
committerCheryl Sabella <cheryl.sabella@gmail.com>
Sat, 15 Jun 2019 11:43:10 +0000 (07:43 -0400)
Lib/concurrent/futures/process.py
Lib/concurrent/futures/thread.py

index cfdcd3ed7ea9df4518caccfdac77961b0d52bac2..9e2ab9db64f6648b2f6d684e047ba52ad24f5051 100644 (file)
@@ -505,7 +505,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 75d05a76be3f41e01235f4e1142a773a0556d341..d84b3aa7da0c2ea95682f348b6dc8a66d133fc5b 100644 (file)
@@ -125,7 +125,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: