mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-02 03:46:53 +00:00
Move fix for #164
This commit is contained in:
parent
552e298a2c
commit
79c80c3181
1 changed files with 2 additions and 2 deletions
|
|
@ -49,7 +49,7 @@ def get_parser():
|
|||
except ValueError:
|
||||
pass
|
||||
|
||||
if multiprocessing and not is_windows():
|
||||
if multiprocessing:
|
||||
try:
|
||||
auto = multiprocessing.cpu_count() or 1
|
||||
except NotImplementedError:
|
||||
|
|
@ -95,7 +95,7 @@ def get_style_guide(**kwargs):
|
|||
if options.diff:
|
||||
options.jobs = None
|
||||
|
||||
if multiprocessing and options.jobs:
|
||||
if multiprocessing and options.jobs and not is_windows():
|
||||
if options.jobs.isdigit():
|
||||
n_jobs = int(options.jobs)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue