mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
gas_diff_stats.py: Replace a list with a generator as suggested by pylint
This commit is contained in:
parent
f4f4cfe294
commit
6605dd084a
@ -88,11 +88,11 @@ def collect_statistics(lines) -> (int, int, int, int, int, int):
|
||||
diff_kinds = [Diff.Minus, Diff.Plus]
|
||||
codegen_kinds = [Kind.IrOptimized, Kind.LegacyOptimized, Kind.Legacy]
|
||||
return tuple(
|
||||
sum([
|
||||
sum(
|
||||
val
|
||||
for (diff_kind, codegen_kind, val) in out
|
||||
if diff_kind == _diff_kind and codegen_kind == _codegen_kind
|
||||
])
|
||||
)
|
||||
for _diff_kind in diff_kinds
|
||||
for _codegen_kind in codegen_kinds
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user