File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 11
22repos :
33- repo : https://github.com/asottile/pyupgrade
4- rev : v2.16.0
4+ rev : v2.18.2
55 hooks :
66 - id : pyupgrade
77
Original file line number Diff line number Diff line change @@ -523,7 +523,7 @@ def _add_charge_conjugate_decays(self):
523523 if len (misses ) > 0 :
524524 msg = """\n Corresponding 'Decay' statement for 'CDecay' statement(s) of following particle(s) not found:\n {}.
525525Skipping creation of these charge-conjugate decay trees.""" .format (
526- "\n " .join ([ m for m in misses ] )
526+ "\n " .join (m for m in misses )
527527 )
528528 warnings .warn (msg )
529529
@@ -1134,10 +1134,8 @@ def get_charge_conjugate_decays(parsed_file):
11341134
11351135 try :
11361136 return sorted (
1137- [
1138- tree .children [0 ].children [0 ].value
1139- for tree in parsed_file .find_data ("cdecay" )
1140- ]
1137+ tree .children [0 ].children [0 ].value
1138+ for tree in parsed_file .find_data ("cdecay" )
11411139 )
11421140 except Exception :
11431141 RuntimeError ("Input parsed file does not seem to have the expected structure." )
You can’t perform that action at this time.
0 commit comments