Skip to content

Commit 4954f2c

Browse files
committed
removed unused import urlparse from test_fetch
1 parent 5bdc1ef commit 4954f2c

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

cwltool/sandboxjs.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import select
77
import subprocess
88
import threading
9-
from multiprocessing import Queue
109
import sys
1110
from io import BytesIO
1211
from typing import Any, Dict, List, Mapping, Text, Tuple, Union
@@ -15,6 +14,11 @@
1514

1615
import six
1716

17+
try:
18+
import queue #python3
19+
except ImportError:
20+
import Queue as queue
21+
1822
class JavascriptException(Exception):
1923
pass
2024

@@ -155,9 +159,9 @@ def term():
155159
READ_BYTES_SIZE = 512
156160

157161
# creating queue for reading from a thread to queue
158-
input_queue = Queue()
159-
output_queue = Queue()
160-
error_queue = Queue()
162+
input_queue = queue.Queue()
163+
output_queue = queue.Queue()
164+
error_queue = queue.Queue()
161165

162166
# To tell threads that output has ended and threads can safely exit
163167
no_more_output = threading.Lock()

tests/test_fetch.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from __future__ import absolute_import
22
import unittest
3-
import urlparse
43

54
from six.moves import urllib
65

0 commit comments

Comments
 (0)