From 79c80c3181f0479c0e041dad356f0830ef1cac81 Mon Sep 17 00:00:00 2001 From: Ian Cordasco Date: Fri, 12 Sep 2014 16:50:54 -0500 Subject: [PATCH] Move fix for #164 --- flake8/engine.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flake8/engine.py b/flake8/engine.py index 12993cf..bba2cea 100644 --- a/flake8/engine.py +++ b/flake8/engine.py @@ -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: