Skip to content

Commit 448ca8a

Browse files
committed
Move LinkChecker from requirements to Dockerfile
Move six.moves.queue to Queue
1 parent 95e2d28 commit 448ca8a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ RUN pip install pre-commit 'ipython==5.3.0' && \
8080
pip install opencv-python
8181

8282
#For docstring checker
83-
RUN pip install pylint pytest astroid isort
83+
RUN pip install pylint pytest astroid isort LinkChecker
8484

8585
COPY ./python/requirements.txt /root/
8686
RUN pip install -r /root/requirements.txt

python/paddle/reader/decorator.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from threading import Thread
2121
import subprocess
2222

23-
from six.moves import queue
23+
from six.moves.queue import Queue
2424
import itertools
2525
import random
2626
import zlib
@@ -190,7 +190,7 @@ def read_worker(r, q):
190190

191191
def data_reader():
192192
r = reader()
193-
q = queue(maxsize=size)
193+
q = Queue(maxsize=size)
194194
t = Thread(
195195
target=read_worker, args=(
196196
r,
@@ -293,8 +293,8 @@ def order_handle_worker(in_queue, out_queue, mapper, out_order):
293293
out_queue.put(end)
294294

295295
def xreader():
296-
in_queue = queue(buffer_size)
297-
out_queue = queue(buffer_size)
296+
in_queue = Queue(buffer_size)
297+
out_queue = Queue(buffer_size)
298298
out_order = [0]
299299
# start a read worker in a thread
300300
target = order_read_worker if order else read_worker

0 commit comments

Comments
 (0)