Skip to content

Commit 6a8d5f4

Browse files
author
Peter Amstutz
committed
Revert isinstance(step_entry, (str, unicode)) because typing.Text is actually
<type 'unicode'> and as a result isinstance(str("foo"), Text) is False.
1 parent 0433da3 commit 6a8d5f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cwltool/workflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ def __init__(self, toolpath_object, pos, **kwargs):
447447
for stepfield, toolfield in (("in", "inputs"), ("out", "outputs")):
448448
toolpath_object[toolfield] = []
449449
for step_entry in toolpath_object[stepfield]:
450-
if isinstance(step_entry, (Text, Text)):
450+
if isinstance(step_entry, (str, unicode)):
451451
param = {} # type: Dict[Text, Any]
452452
inputid = step_entry
453453
else:

0 commit comments

Comments
 (0)