mirror of https://github.com/python/cpython
fix import of multiprocessing by juggling imports
This commit is contained in:
parent
f0bc3cbdc0
commit
e605e4f09a
|
@ -60,7 +60,6 @@ __author__ = 'R. Oudkerk (r.m.oudkerk@gmail.com)'
|
|||
import os
|
||||
import sys
|
||||
|
||||
import _multiprocessing
|
||||
from multiprocessing.process import Process, current_process, active_children
|
||||
|
||||
#
|
||||
|
@ -79,6 +78,9 @@ class TimeoutError(ProcessError):
|
|||
class AuthenticationError(ProcessError):
|
||||
pass
|
||||
|
||||
# This is down here because _multiprocessing uses BufferTooShort
|
||||
import _multiprocessing
|
||||
|
||||
#
|
||||
# Definitions not depending on native semaphores
|
||||
#
|
||||
|
|
|
@ -16,13 +16,13 @@ import socket
|
|||
import random
|
||||
import logging
|
||||
|
||||
import _multiprocessing
|
||||
import multiprocessing.dummy
|
||||
import multiprocessing.connection
|
||||
import multiprocessing.managers
|
||||
import multiprocessing.heap
|
||||
import multiprocessing.managers
|
||||
import multiprocessing.pool
|
||||
import _multiprocessing
|
||||
|
||||
from multiprocessing import util
|
||||
|
||||
|
|
Loading…
Reference in New Issue