We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c004def commit 65e5359Copy full SHA for 65e5359
1 file changed
pman/_build.py
@@ -4,6 +4,7 @@
4
import itertools
5
import os
6
import signal
7
+import sys
8
import time
9
10
# pylint: disable=redefined-builtin
@@ -187,7 +188,12 @@ def update_progress():
187
188
os.kill(pid, signal.SIGKILL)
189
except ProcessLookupError:
190
pass
- pool.shutdown(wait=False, cancel_futures=True)
191
+ shutdown_args = {
192
+ 'wait': False
193
+ }
194
+ if sys.version_info >= (3, 9):
195
+ shutdown_args['cancel_futures'] = True
196
+ pool.shutdown(**shutdown_args)
197
raise exc
198
199
print(f':stopwatch: Build took [json.number]{time.perf_counter() - stime:.2f}s')
0 commit comments