@@ -1186,17 +1186,20 @@ def _list_outputs(self):
1186
1186
class SelectFilesInputSpec (DynamicTraitedSpec , BaseInterfaceInputSpec ):
1187
1187
1188
1188
base_directory = Directory (exists = True ,
1189
- desc = "Root path common to templates." )
1189
+ desc = "Root path common to templates." )
1190
1190
sort_filelist = traits .Bool (True , usedefault = True ,
1191
- desc = "When matching mutliple files, return them in sorted order." )
1191
+ desc = "When matching mutliple files, return them"
1192
+ " in sorted order." )
1192
1193
raise_on_empty = traits .Bool (True , usedefault = True ,
1193
- desc = "Raise an exception if a template pattern matches no files." )
1194
+ desc = "Raise an exception if a template pattern "
1195
+ "matches no files." )
1194
1196
force_lists = traits .Either (traits .Bool (), traits .List (Str ()),
1195
- default = False , usedefault = True ,
1196
- desc = ("Whether to return outputs as a list even when only one file "
1197
- "matches the template. Either a boolean that applies to all "
1198
- "output fields or a list of output field names to coerce to "
1199
- " a list" ))
1197
+ default = False , usedefault = True ,
1198
+ desc = ("Whether to return outputs as a list even"
1199
+ " when only one file matches the template. "
1200
+ "Either a boolean that applies to all output "
1201
+ "fields or a list of output field names to "
1202
+ "coerce to a list" ))
1200
1203
1201
1204
1202
1205
class SelectFiles (IOBase ):
@@ -1296,9 +1299,7 @@ def _list_outputs(self):
1296
1299
1297
1300
for field , template in list (self ._templates .items ()):
1298
1301
1299
- find_dirs = False
1300
- if template [- 1 ] == os .sep :
1301
- find_dirs = True
1302
+ find_dirs = template [- 1 ] == os .sep
1302
1303
1303
1304
# Build the full template path
1304
1305
if isdefined (self .inputs .base_directory ):
0 commit comments