Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions 10 Lib/concurrent/futures/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,13 @@ def __getattr__(name):
global ProcessPoolExecutor, ThreadPoolExecutor

if name == 'ProcessPoolExecutor':
from .process import ProcessPoolExecutor
return ProcessPoolExecutor
from .process import ProcessPoolExecutor as pe
ProcessPoolExecutor = pe
return pe

if name == 'ThreadPoolExecutor':
from .thread import ThreadPoolExecutor
return ThreadPoolExecutor
from .thread import ThreadPoolExecutor as te
ThreadPoolExecutor = te
return te

raise AttributeError(f"module {__name__} has no attribute {name}")
Morty Proxy This is a proxified and sanitized view of the page, visit original site.