diff --git a/src/gen-indic-table.py b/src/gen-indic-table.py index 1c9605bb0..9d4d54800 100755 --- a/src/gen-indic-table.py +++ b/src/gen-indic-table.py @@ -41,8 +41,8 @@ files = [open (x, encoding='utf-8') for x in sys.argv[1:]] headers = [[f.readline () for i in range (2)] for f in files] -data = [{} for f in files] -values = [{} for f in files] +data = [{} for _ in files] +values = [{} for _ in files] for i, f in enumerate (files): for line in f: @@ -215,7 +215,6 @@ for u in uu: if start != last + 1: if start - last <= 1+16*3: print_block (None, last+1, start-1, data) - last = start-1 else: if last >= 0: ends.append (last + 1) diff --git a/src/gen-use-table.py b/src/gen-use-table.py index 5eaa6c955..e4b48353f 100755 --- a/src/gen-use-table.py +++ b/src/gen-use-table.py @@ -22,8 +22,8 @@ files = [open (x, encoding='utf-8') for x in sys.argv[1:]] headers = [[f.readline () for i in range (2)] for j,f in enumerate(files) if j != 2] headers.append (["UnicodeData.txt does not have a header."]) -data = [{} for f in files] -values = [{} for f in files] +data = [{} for _ in files] +values = [{} for _ in files] for i, f in enumerate (files): for line in f: @@ -488,7 +488,6 @@ for u in uu: if start != last + 1: if start - last <= 1+16*3: print_block (None, last+1, start-1, data) - last = start-1 else: if last >= 0: ends.append (last + 1)