Skip to content

Commit eb63527

Browse files
STY: Apply ruff/flake8-comprehensions rule C400
C400 Unnecessary generator (rewrite as a `list` comprehension)
1 parent 4d1352a commit eb63527

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/interfaces/io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,7 @@ def _list_outputs(self):
941941
# get list of all files in s3 bucket
942942
conn = boto.connect_s3(anon=self.inputs.anon)
943943
bkt = conn.get_bucket(self.inputs.bucket)
944-
bkt_files = list(k.key for k in bkt.list(prefix=self.inputs.bucket_path))
944+
bkt_files = [k.key for k in bkt.list(prefix=self.inputs.bucket_path)]
945945

946946
# keys are outfields, args are template args for the outfield
947947
for key, args in list(self.inputs.template_args.items()):

0 commit comments

Comments
 (0)