95 ] |
95 ] |
96 |
96 |
97 ProcessPoolExecutor = None |
97 ProcessPoolExecutor = None |
98 if workers != 1: |
98 if workers != 1: |
99 try: |
99 try: |
100 from concurrent.futures import ProcessPoolExecutor # noqa: I101, I103 |
100 from concurrent.futures import ProcessPoolExecutor # noqa: I-101, I-103 |
101 except NotImplementedError: |
101 except NotImplementedError: |
102 workers = 1 |
102 workers = 1 |
103 |
103 |
104 if workers != 1 and ProcessPoolExecutor is not None: |
104 if workers != 1 and ProcessPoolExecutor is not None: |
105 # If workers == 0, let ProcessPoolExecutor determine worker count. |
105 # If workers == 0, let ProcessPoolExecutor determine worker count. |