diff options
author | Yury Selivanov <yury@magic.io> | 2016-10-21 21:41:23 (GMT) |
---|---|---|
committer | Yury Selivanov <yury@magic.io> | 2016-10-21 21:41:23 (GMT) |
commit | 6330f2a5cedffe0a3c70c681a821a03b563d7db0 (patch) | |
tree | 89cc2e8e202487d4eb6f0d8dedb36159ffbd9db4 /Lib | |
parent | 2ae0d6447135597a231d7cd7666d44a50451cc71 (diff) | |
parent | e8a6045fea844f561021c2fd8ffd965749026699 (diff) | |
download | cpython-6330f2a5cedffe0a3c70c681a821a03b563d7db0.zip cpython-6330f2a5cedffe0a3c70c681a821a03b563d7db0.tar.gz cpython-6330f2a5cedffe0a3c70c681a821a03b563d7db0.tar.bz2 |
Merge 3.5 (issue #26796)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/asyncio/base_events.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py index e59b2b7..5880061 100644 --- a/Lib/asyncio/base_events.py +++ b/Lib/asyncio/base_events.py @@ -41,9 +41,6 @@ from .log import logger __all__ = ['BaseEventLoop'] -# Argument for default thread pool executor creation. -_MAX_WORKERS = 5 - # Minimum number of _scheduled timer handles before cleanup of # cancelled handles is performed. _MIN_SCHEDULED_TIMER_HANDLES = 100 @@ -620,7 +617,7 @@ class BaseEventLoop(events.AbstractEventLoop): if executor is None: executor = self._default_executor if executor is None: - executor = concurrent.futures.ThreadPoolExecutor(_MAX_WORKERS) + executor = concurrent.futures.ThreadPoolExecutor() self._default_executor = executor return futures.wrap_future(executor.submit(func, *args), loop=self) |