From 55abfbd2ac1626af16151298a0837b837d0796df Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 20 Jun 2014 16:47:43 -0400 Subject: [PATCH] [indic-table] Minor No output change. --- src/gen-indic-table.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/gen-indic-table.py b/src/gen-indic-table.py index 10e45798a..c1b0d6e43 100755 --- a/src/gen-indic-table.py +++ b/src/gen-indic-table.py @@ -12,7 +12,6 @@ files = [file (x) for x in sys.argv[1:]] headers = [[f.readline () for i in range (2)] for f in files] -blocks = {} data = [{} for f in files] values = [{} for f in files] for i, f in enumerate (files): @@ -39,9 +38,6 @@ for i, f in enumerate (files): data[i][u] = t values[i][t] = values[i].get (t, 0) + 1 - if i == 2: - blocks[t] = (start, end) - # Merge data into one dict: defaults = ('Other', 'Not_Applicable', 'No_Block') for i,v in enumerate (defaults): @@ -164,11 +160,10 @@ for u in uu: if u <= last: continue block = data[u][2] - (bstart, bend) = blocks[block] start = u//8*8 end = start+1 - while end < bend and end in uu: + while end in uu and block == data[end][2]: end += 1 end = (end-1)//8*8 + 7