Skip to content

Commit

Permalink
Use dummy pool for jobs=1 (#436)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac-HD authored Jan 27, 2021
1 parent f78de1b commit 546f628
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcst/codemod/_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ def parallel_exec_transform_with_prettyprint( # noqa: C901
python_version=python_version,
)

if total == 1:
if total == 1 or jobs == 1:
# Simple case, we should not pay for process overhead.
# Let's just use a dummy synchronous pool.
jobs = 1
Expand Down

0 comments on commit 546f628

Please sign in to comment.