@@ -33,7 +33,7 @@ cdef const uint8_t[:] rle_decompress(int result_length,
33
33
raise ValueError (" Unexpected non-zero end_of_first_byte" )
34
34
nbytes = < int > (inbuff[ipos]) + 64
35
35
ipos += 1
36
- for i in range (nbytes):
36
+ for _ in range (nbytes):
37
37
result[rpos] = inbuff[ipos]
38
38
rpos += 1
39
39
ipos += 1
@@ -42,20 +42,20 @@ cdef const uint8_t[:] rle_decompress(int result_length,
42
42
nbytes = end_of_first_byte * 16
43
43
nbytes += < int > (inbuff[ipos])
44
44
ipos += 1
45
- for i in range (nbytes):
45
+ for _ in range (nbytes):
46
46
result[rpos] = inbuff[ipos]
47
47
rpos += 1
48
48
ipos += 1
49
49
elif control_byte == 0x60 :
50
50
nbytes = end_of_first_byte * 256 + < int > (inbuff[ipos]) + 17
51
51
ipos += 1
52
- for i in range (nbytes):
52
+ for _ in range (nbytes):
53
53
result[rpos] = 0x20
54
54
rpos += 1
55
55
elif control_byte == 0x70 :
56
56
nbytes = end_of_first_byte * 256 + < int > (inbuff[ipos]) + 17
57
57
ipos += 1
58
- for i in range (nbytes):
58
+ for _ in range (nbytes):
59
59
result[rpos] = 0x00
60
60
rpos += 1
61
61
elif control_byte == 0x80 :
@@ -86,22 +86,22 @@ cdef const uint8_t[:] rle_decompress(int result_length,
86
86
nbytes = end_of_first_byte + 3
87
87
x = inbuff[ipos]
88
88
ipos += 1
89
- for i in range (nbytes):
89
+ for _ in range (nbytes):
90
90
result[rpos] = x
91
91
rpos += 1
92
92
elif control_byte == 0xD0 :
93
93
nbytes = end_of_first_byte + 2
94
- for i in range (nbytes):
94
+ for _ in range (nbytes):
95
95
result[rpos] = 0x40
96
96
rpos += 1
97
97
elif control_byte == 0xE0 :
98
98
nbytes = end_of_first_byte + 2
99
- for i in range (nbytes):
99
+ for _ in range (nbytes):
100
100
result[rpos] = 0x20
101
101
rpos += 1
102
102
elif control_byte == 0xF0 :
103
103
nbytes = end_of_first_byte + 2
104
- for i in range (nbytes):
104
+ for _ in range (nbytes):
105
105
result[rpos] = 0x00
106
106
rpos += 1
107
107
else :
@@ -289,7 +289,7 @@ cdef class Parser:
289
289
bint done
290
290
int i
291
291
292
- for i in range (nrows):
292
+ for _ in range (nrows):
293
293
done = self .readline()
294
294
if done:
295
295
break
0 commit comments