mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Remove unused or redundant imports in concurrent.futures and multiprocessing.
This commit is contained in:
parent
f8240d6564
commit
04842a84c3
12 changed files with 7 additions and 28 deletions
|
@ -35,7 +35,6 @@
|
|||
import os
|
||||
import sys
|
||||
import signal
|
||||
import select
|
||||
|
||||
from multiprocessing import util, process
|
||||
|
||||
|
@ -101,7 +100,6 @@ else:
|
|||
#
|
||||
|
||||
if sys.platform != 'win32':
|
||||
import time
|
||||
import select
|
||||
|
||||
exit = os._exit
|
||||
|
@ -170,7 +168,7 @@ if sys.platform != 'win32':
|
|||
if self.returncode is None:
|
||||
try:
|
||||
os.kill(self.pid, signal.SIGTERM)
|
||||
except OSError as e:
|
||||
except OSError:
|
||||
if self.wait(timeout=0.1) is None:
|
||||
raise
|
||||
|
||||
|
@ -186,11 +184,9 @@ else:
|
|||
import _thread
|
||||
import msvcrt
|
||||
import _subprocess
|
||||
import time
|
||||
|
||||
from pickle import dump, load, HIGHEST_PROTOCOL
|
||||
from pickle import load, HIGHEST_PROTOCOL
|
||||
from _multiprocessing import win32
|
||||
from .util import Finalize
|
||||
|
||||
def dump(obj, file, protocol=None):
|
||||
ForkingPickler(file, protocol).dump(obj)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue