Commit c54553f
committed
Create deque instance directly from range object.
Explicitly iterating over the range object in the form of a list comprehension (BTW, a generator expression here would be more appropriate, and easier to read) without transforming or filtering elements is unnecessary, so the range object can be used to directly feed its values to the deque on instantiation.1 parent 4473bb3 commit c54553f
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| |||
0 commit comments