Commit 057e6f6
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 64b9a37 commit 057e6f6
2 files changed
+5
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1627 | 1627 | | |
1628 | 1628 | | |
1629 | 1629 | | |
1630 | | - | |
1631 | | - | |
1632 | | - | |
1633 | | - | |
1634 | | - | |
1635 | | - | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
| 1633 | + | |
1636 | 1634 | | |
1637 | 1635 | | |
1638 | 1636 | | |
| |||
| 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