queue availability check

This commit is contained in:
Roman committed 2020-10-07 14:09:32 +02:00
1 parent fcb562e6df
commit 5046360a1d
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ from importlib import util
threading_spec = util.find_spec("threading")
queue_spec = util.find_spec("queue")
if threading_spec is not None:
if threading_spec is not None and queue_spec is not None:
import threading
import queue
NUM_THREADS = 10
+1 -1
View File
@@ -8,7 +8,7 @@ from importlib import util
threading_spec = util.find_spec("threading")
queue_spec = util.find_spec("queue")
if threading_spec is not None:
if threading_spec is not None and queue_spec is not None:
import threading
import queue
NUM_THREADS = 10