We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fc98ae commit 4666ec5Copy full SHA for 4666ec5
Lib/concurrent/futures/__init__.py
@@ -40,11 +40,13 @@ def __getattr__(name):
40
global ProcessPoolExecutor, ThreadPoolExecutor
41
42
if name == 'ProcessPoolExecutor':
43
- from .process import ProcessPoolExecutor
44
- return ProcessPoolExecutor
+ from .process import ProcessPoolExecutor as pe
+ ProcessPoolExecutor = pe
45
+ return pe
46
47
if name == 'ThreadPoolExecutor':
- from .thread import ThreadPoolExecutor
48
- return ThreadPoolExecutor
+ from .thread import ThreadPoolExecutor as te
49
+ ThreadPoolExecutor = te
50
+ return te
51
52
raise AttributeError(f"module {__name__} has no attribute {name}")
0 commit comments