Remove unused or redundant imports in concurrent.futures and multiprocessing.
diff --git a/Lib/concurrent/futures/process.py b/Lib/concurrent/futures/process.py
index 9b2e0f3..0575146 100644
--- a/Lib/concurrent/futures/process.py
+++ b/Lib/concurrent/futures/process.py
@@ -221,7 +221,7 @@
assert sentinels
try:
result_item = result_queue.get(sentinels=sentinels)
- except SentinelReady as e:
+ except SentinelReady:
# Mark the process pool broken so that submits fail right now.
executor = executor_reference()
if executor is not None:
@@ -291,7 +291,6 @@
raise NotImplementedError(_system_limited)
_system_limits_checked = True
try:
- import os
nsems_max = os.sysconf("SC_SEM_NSEMS_MAX")
except (AttributeError, ValueError):
# sysconf not available or setting not available