queue availability check
This commit is contained in:
1 parent
fcb562e6df
commit
5046360a1d
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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
@@ -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
|
||||
|
||||
Reference in new issue
Block a user