Replaced unused loop variables in Python code with _.

pull/16/head
Project Nayuki 7 years ago
parent 98540764ce
commit c3f3ea1f28

@ -512,7 +512,7 @@ class QrCode(object):
step = 26 step = 26
result = [6] result = [6]
pos = ver * 4 + 10 pos = ver * 4 + 10
for i in range(numalign - 1): for _ in range(numalign - 1):
result.insert(1, pos) result.insert(1, pos)
pos -= step pos -= step
return result return result
@ -790,7 +790,7 @@ class _ReedSolomonGenerator(object):
# drop the highest term, and store the rest of the coefficients in order of descending powers. # drop the highest term, and store the rest of the coefficients in order of descending powers.
# Note that r = 0x02, which is a generator element of this field GF(2^8/0x11D). # Note that r = 0x02, which is a generator element of this field GF(2^8/0x11D).
root = 1 root = 1
for i in range(degree): for _ in range(degree):
# Multiply the current product by (x - r^i) # Multiply the current product by (x - r^i)
for j in range(degree): for j in range(degree):
self.coefficients[j] = _ReedSolomonGenerator._multiply(self.coefficients[j], root) self.coefficients[j] = _ReedSolomonGenerator._multiply(self.coefficients[j], root)

Loading…
Cancel
Save