Unverified Commit a81702ce authored by Troy Murray's avatar Troy Murray Committed by GitHub
Browse files

Changed max workers on windows to 60 (#1912)

parent ba3648d9
Loading
Loading
Loading
Loading
+1 −1
Changes for src/black/__init__.py: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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):