Actions
Bug #9297
openPy3: Remove unnecessary conversions to list
Start date:
08/21/2021
Due date:
% Done:
0%
Estimated time:
0:30 h
Chirp Version:
daily
Model affected:
Development
Platform:
Windows
I read the instructions above:
Description
Dispite 2to3's xrange converter, not all instances of range need to be wrapped in conversion to list.
For example,
@for i in reverse(range(0, len(bcd_array))):@
is just fine without the range being placed in a list.
2to3 replaces the above line with,
@for i in reversed(list(range(0,l len(bcd_array)))):@
Actions