From a830a83675e95d30f3acc623e952585b1528c9c7 Mon Sep 17 00:00:00 2001 From: sylnsfar Date: Wed, 7 Sep 2016 01:49:00 +0800 Subject: [PATCH] correct details --- README.md | 2 +- mylibs/ECC.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 17b8e7a..ecff065 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # QR-Code -*update: add an **exe** version at https://github.com/sylnsfar/qrcode_win +* update: add an **exe** version - [myqr.exe](https://github.com/sylnsfar/qrcode_win) diff --git a/mylibs/ECC.py b/mylibs/ECC.py index 71eecf9..f35581f 100644 --- a/mylibs/ECC.py +++ b/mylibs/ECC.py @@ -42,8 +42,7 @@ def encode(ver, ecl, data_codewords): en = ecc_num_per_block[ver-1][lindex[ecl]] ecc = [] for dc in data_codewords: - test = get_ecc(dc, en) - ecc.append(test) + ecc.append(get_ecc(dc, en)) return ecc def get_ecc(dc, ecc_num):