@@ -942,7 +942,7 @@ def _list_outputs(self):
942942 # get list of all files in s3 bucket
943943 conn = boto .connect_s3 (anon = self .inputs .anon )
944944 bkt = conn .get_bucket (self .inputs .bucket )
945- bkt_files = list ( k .key for k in bkt .list (prefix = self .inputs .bucket_path ))
945+ bkt_files = [ k .key for k in bkt .list (prefix = self .inputs .bucket_path )]
946946
947947 # keys are outfields, args are template args for the outfield
948948 for key , args in list (self .inputs .template_args .items ()):
@@ -1022,7 +1022,7 @@ def _list_outputs(self):
10221022 if self .inputs .sort_filelist :
10231023 outfiles = human_order_sorted (outfiles )
10241024 outputs [key ].append (simplify_list (outfiles ))
1025- if any ([ val is None for val in outputs [key ]]) :
1025+ if None in outputs [key ]:
10261026 outputs [key ] = []
10271027 if len (outputs [key ]) == 0 :
10281028 outputs [key ] = None
@@ -1297,7 +1297,7 @@ def _list_outputs(self):
12971297 if self .inputs .drop_blank_outputs :
12981298 outputs [key ] = [x for x in outputs [key ] if x is not None ]
12991299 else :
1300- if any ([ val is None for val in outputs [key ]]) :
1300+ if None in outputs [key ]:
13011301 outputs [key ] = []
13021302 if len (outputs [key ]) == 0 :
13031303 outputs [key ] = None
@@ -2302,7 +2302,7 @@ def __init__(self, input_names, **inputs):
23022302 super ().__init__ (** inputs )
23032303
23042304 self ._input_names = ensure_list (input_names )
2305- add_traits (self .inputs , [ name for name in self ._input_names ] )
2305+ add_traits (self .inputs , self ._input_names )
23062306
23072307 def _list_outputs (self ):
23082308 """Execute this module."""
@@ -2364,7 +2364,7 @@ def __init__(self, input_names, **inputs):
23642364 super ().__init__ (** inputs )
23652365
23662366 self ._input_names = ensure_list (input_names )
2367- add_traits (self .inputs , [ name for name in self ._input_names ] )
2367+ add_traits (self .inputs , self ._input_names )
23682368
23692369 def _list_outputs (self ):
23702370 """Execute this module."""
@@ -2642,7 +2642,7 @@ def _list_outputs(self):
26422642 outputs [key ].append (self ._get_files_over_ssh (filledtemplate ))
26432643
26442644 # disclude where there was any invalid matches
2645- if any ([ val is None for val in outputs [key ]]) :
2645+ if None in outputs [key ]:
26462646 outputs [key ] = []
26472647
26482648 # no outputs is None, not empty list
0 commit comments