Move LinkChecker from requirements to Dockerfile

Move six.moves.queue to Queue
guochaorong-patch-1
minqiyang 7 years ago
parent 95e2d28659
commit 448ca8a46d

@ -80,7 +80,7 @@ RUN pip install pre-commit 'ipython==5.3.0' && \
pip install opencv-python
#For docstring checker
RUN pip install pylint pytest astroid isort
RUN pip install pylint pytest astroid isort LinkChecker
COPY ./python/requirements.txt /root/
RUN pip install -r /root/requirements.txt

@ -20,7 +20,7 @@ __all__ = [
from threading import Thread
import subprocess
from six.moves import queue
from six.moves.queue import Queue
import itertools
import random
import zlib
@ -190,7 +190,7 @@ def buffered(reader, size):
def data_reader():
r = reader()
q = queue(maxsize=size)
q = Queue(maxsize=size)
t = Thread(
target=read_worker, args=(
r,
@ -293,8 +293,8 @@ def xmap_readers(mapper, reader, process_num, buffer_size, order=False):
out_queue.put(end)
def xreader():
in_queue = queue(buffer_size)
out_queue = queue(buffer_size)
in_queue = Queue(buffer_size)
out_queue = Queue(buffer_size)
out_order = [0]
# start a read worker in a thread
target = order_read_worker if order else read_worker

Loading…
Cancel
Save