From: Troy Murray Date: Fri, 8 Jan 2021 20:26:42 +0000 (+1100) Subject: Changed max workers on windows to 60 (#1912) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/a81702ce027ef6792955d5db02aad60a34c7ec44?ds=inline Changed max workers on windows to 60 (#1912) --- 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):