Skip to content

Commit f6bd121

Browse files
committed
Don't import typing.Deque
This isn't available in Python 3.5.
1 parent f3ca1b9 commit f6bd121

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

cwltool/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
import sys
1515

1616
from typing import (IO, Any, Callable, Dict, # pylint: disable=unused-import
17-
Deque, Iterable, List, Mapping, MutableMapping, Optional,
18-
Text, TextIO, Tuple, Union, cast)
17+
Iterable, List, Mapping, MutableMapping, Optional, Text,
18+
TextIO, Tuple, Union, cast)
1919
import pkg_resources # part of setuptools
2020
import ruamel.yaml as yaml
2121
import schema_salad.validate as validate

cwltool/utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
import pkg_resources
1111
from functools import partial # pylint: disable=unused-import
1212
from typing import (IO, Any, AnyStr, Callable, # pylint: disable=unused-import
13-
Deque, Dict, Iterable, List, Optional, Text, Tuple, TypeVar,
14-
Union)
13+
Dict, Iterable, List, Optional, Text, Tuple, TypeVar, Union)
1514

1615
import six
1716
from six.moves import urllib, zip_longest
@@ -33,7 +32,7 @@
3332

3433
DEFAULT_TMP_PREFIX = "tmp"
3534

36-
processes_to_kill = collections.deque() # type: Deque[subprocess.Popen]
35+
processes_to_kill = collections.deque() # type: collections.deque[subprocess.Popen]
3736

3837
def versionstring():
3938
# type: () -> Text

0 commit comments

Comments
 (0)