mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-15 16:49:52 +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:
|
except ValueError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if multiprocessing and not is_windows():
|
if multiprocessing:
|
||||||
try:
|
try:
|
||||||
auto = multiprocessing.cpu_count() or 1
|
auto = multiprocessing.cpu_count() or 1
|
||||||
except NotImplementedError:
|
except NotImplementedError:
|
||||||
|
|
@ -95,7 +95,7 @@ def get_style_guide(**kwargs):
|
||||||
if options.diff:
|
if options.diff:
|
||||||
options.jobs = None
|
options.jobs = None
|
||||||
|
|
||||||
if multiprocessing and options.jobs:
|
if multiprocessing and options.jobs and not is_windows():
|
||||||
if options.jobs.isdigit():
|
if options.jobs.isdigit():
|
||||||
n_jobs = int(options.jobs)
|
n_jobs = int(options.jobs)
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue