Commit 27772a0
committed
R1728: Redundant list comprehension can be replaced using generator
Removing [] inside calls that can use containers or generators should
be considered for performance reasons since a generator will have an
upfront cost to pay. The performance will be better if you are working
with long lists or sets.1 parent 9e8b50a commit 27772a0
2 files changed
+5
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1643 | 1643 | | |
1644 | 1644 | | |
1645 | 1645 | | |
1646 | | - | |
1647 | | - | |
1648 | | - | |
1649 | | - | |
1650 | | - | |
1651 | | - | |
| 1646 | + | |
| 1647 | + | |
| 1648 | + | |
| 1649 | + | |
1652 | 1650 | | |
1653 | 1651 | | |
1654 | 1652 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
| 198 | + | |
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| |||
0 commit comments