Issue #17914: Use os.cpu_count() instead of multiprocessing.cpu_count() where

applicable.
This commit is contained in:
Charles-François Natali 2013-06-28 19:25:45 +02:00
parent c723da361a
commit 37cfb0a920
4 changed files with 7 additions and 13 deletions

View file

@ -331,7 +331,7 @@ class ProcessPoolExecutor(_base.Executor):
_check_system_limits()
if max_workers is None:
self._max_workers = multiprocessing.cpu_count()
self._max_workers = os.cpu_count() or 1
else:
self._max_workers = max_workers