Skip to content

Commit a56c0bb

Browse files
committed
adding bytes to isinstance(val, str)
1 parent a7cdc6b commit a56c0bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/interfaces/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2061,7 +2061,7 @@ class MultiPath(traits.List):
20612061
def validate(self, object, name, value):
20622062

20632063
# want to treat range and other sequences (except str) as list
2064-
if not isinstance(value, str) and isinstance(value, collections.Sequence):
2064+
if not isinstance(value, (str, bytes)) and isinstance(value, collections.Sequence):
20652065
value = list(value)
20662066

20672067
if not isdefined(value) or \

0 commit comments

Comments
 (0)