Revert hidden imports in queues (Fixes: #1758)
This commit is contained in:
parent
64d2a831c4
commit
d5666f7ffc
|
@ -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`"""
|
||||||
|
|
Reference in New Issue
Block a user