File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -948,12 +948,11 @@ def _list_outputs(self):
948
948
# We must convert to the local location specified
949
949
# and download the files.
950
950
for key ,val in outputs .items ():
951
- #This will basically be either list-like or string-like:
952
- #if it has the __iter__ attribute, it's list-like (list,
953
- #tuple, numpy array) and we iterate through each of its
954
- #values. If it doesn't, it's string-like (string,
955
- #unicode), and we convert that value directly.
956
- if hasattr (val ,'__iter__' ):
951
+ # This will basically be either list-like or string-like:
952
+ # if it's an instance of a list, we'll iterate through it.
953
+ # If it isn't, it's string-like (string, unicode), we
954
+ # convert that value directly.
955
+ if isinstance (val , (list , tuple , set )):
957
956
for i ,path in enumerate (val ):
958
957
outputs [key ][i ] = self .s3tolocal (path , bkt )
959
958
else :
You can’t perform that action at this time.
0 commit comments