Revert hidden imports in queues (Fixes: #1758)

This commit is contained in:
Dmitri Bogomolov 2021-04-30 23:01:50 +03:00
parent 64d2a831c4
commit d5666f7ffc
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13

View File

@ -1,19 +1,17 @@
"""Most of the queues used by bitmessage threads are defined here.""" """Most of the queues used by bitmessage threads are defined here."""
import sys
if sys.version_info[0] == 3:
import queue as Queue
else:
import Queue
import threading import threading
import time import time
try:
import queue as Queue
except ImportError:
import Queue
import sys try:
if sys.version_info[0] == 3:
from .multiqueue import MultiQueue
else:
from multiqueue import MultiQueue from multiqueue import MultiQueue
except ImportError:
from .multiqueue import MultiQueue
class ObjectProcessorQueue(Queue.Queue): class ObjectProcessorQueue(Queue.Queue):
"""Special queue class using lock for `.threads.objectProcessor`""" """Special queue class using lock for `.threads.objectProcessor`"""