Skip to content

Commit 24c529c

Browse files
committed
refractor
1 parent 8b3836e commit 24c529c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

wrapt_timeout_decorator/wrap_function_multiprocess.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import sys
22
from .wrap_helper import raise_exception, is_system_windows
3-
import multiprocess as multiprocessing
3+
import multiprocess
44

55

66
class Timeout(object):
@@ -29,9 +29,9 @@ def __call__(self, *args, **kwargs):
2929
requires that "ready" be intermittently polled. If and when it is
3030
True, the "value" property may then be checked for returned data.
3131
"""
32-
self.__parent_conn, self.__child_conn = multiprocessing.Pipe(duplex=False)
32+
self.__parent_conn, self.__child_conn = multiprocess.Pipe(duplex=False)
3333
args = (self.__child_conn, self.dec_hard_timeout, self.function) + args
34-
self.__process = multiprocessing.Process(target=_target, args=args, kwargs=kwargs)
34+
self.__process = multiprocess.Process(target=_target, args=args, kwargs=kwargs)
3535

3636
# python 2.7 windows multiprocess does not provide daemonic process in a subthread
3737
if is_python_27_under_windows():

0 commit comments

Comments
 (0)