Simplified and clarified small different pieces of code in a few languages.

This commit is contained in:
Project Nayuki
2018-08-22 20:19:04 +00:00
parent 6f45d3b573
commit 6841e3716c
3 changed files with 7 additions and 9 deletions
+1 -2
View File
@@ -368,8 +368,7 @@ class QrCode(object):
ecc = rs.get_remainder(dat)
if i < numshortblocks:
dat.append(0)
dat.extend(ecc)
blocks.append(dat)
blocks.append(dat + ecc)
assert k == len(data)
# Interleave (not concatenate) the bytes from every block into a single sequence