Updated queues

This commit is contained in:
shekhar-cis 2022-01-06 17:32:07 +05:30
parent 584ea0f6a0
commit 21691de95d
Signed by untrusted user: shekhar-cis
GPG Key ID: F4F00AB04E83F9A7

View File

@ -8,7 +8,13 @@ from six.moves import queue
try: try:
from multiqueue import MultiQueue from multiqueue import MultiQueue
except ImportError: except ImportError:
try:
from .multiqueue import MultiQueue from .multiqueue import MultiQueue
except ImportError:
import sys
if 'bitmessagemock' not in sys.modules:
raise
MultiQueue = queue.Queue
class ObjectProcessorQueue(queue.Queue): class ObjectProcessorQueue(queue.Queue):