Skip to content

Commit a06d84a

Browse files
ligurioTotktonada
andcommitted
python3: fix import of multiprocessing module
Part of #20 Co-authored-by: Alexander Turenko <[email protected]>
1 parent bacd064 commit a06d84a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

dispatcher.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@
77
import yaml
88

99
import multiprocessing
10-
from multiprocessing.queues import SimpleQueue
10+
try:
11+
# Python 3.7+
12+
from multiprocessing import SimpleQueue
13+
except ImportError:
14+
# Python 2
15+
from multiprocessing.queues import SimpleQueue
1116

1217
import listeners
1318
from lib import Options

0 commit comments

Comments
 (0)