From a81702ce027ef6792955d5db02aad60a34c7ec44 Mon Sep 17 00:00:00 2001 From: Troy Murray Date: Sat, 9 Jan 2021 07:26:42 +1100 Subject: [PATCH] Changed max workers on windows to 60 (#1912) --- src/black/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/black/__init__.py b/src/black/__init__.py index 9b9903c..91f70d9 100644 --- a/src/black/__init__.py +++ b/src/black/__init__.py @@ -741,7 +741,7 @@ def reformat_many( worker_count = os.cpu_count() if sys.platform == "win32": # Work around https://bugs.python.org/issue26903 - worker_count = min(worker_count, 61) + worker_count = min(worker_count, 60) try: executor = ProcessPoolExecutor(max_workers=worker_count) except (ImportError, OSError): -- 2.39.5