remove useless semicolon from python

This commit is contained in:
Eitan Adler 2016-09-17 23:10:12 -07:00
parent 22c66c4b38
commit 1a4a723dda
2 changed files with 12 additions and 12 deletions

View File

@ -285,7 +285,7 @@ class Vector(Type):
class Pointer(Type): class Pointer(Type):
def __init__(self, elem, llvm_elem, const): def __init__(self, elem, llvm_elem, const):
self._elem = elem; self._elem = elem
self._llvm_elem = llvm_elem self._llvm_elem = llvm_elem
self._const = const self._const = const
Type.__init__(self, BITWIDTH_POINTER) Type.__init__(self, BITWIDTH_POINTER)

View File

@ -82,28 +82,28 @@ def load_unicode_data(f):
canon_decomp = {} canon_decomp = {}
compat_decomp = {} compat_decomp = {}
udict = {}; udict = {}
range_start = -1; range_start = -1
for line in fileinput.input(f): for line in fileinput.input(f):
data = line.split(';'); data = line.split(';')
if len(data) != 15: if len(data) != 15:
continue continue
cp = int(data[0], 16); cp = int(data[0], 16)
if is_surrogate(cp): if is_surrogate(cp):
continue continue
if range_start >= 0: if range_start >= 0:
for i in xrange(range_start, cp): for i in xrange(range_start, cp):
udict[i] = data; udict[i] = data
range_start = -1; range_start = -1
if data[1].endswith(", First>"): if data[1].endswith(", First>"):
range_start = cp; range_start = cp
continue; continue
udict[cp] = data; udict[cp] = data
for code in udict: for code in udict:
(code_org, name, gencat, combine, bidi, (code_org, name, gencat, combine, bidi,
decomp, deci, digit, num, mirror, decomp, deci, digit, num, mirror,
old, iso, upcase, lowcase, titlecase) = udict[code]; old, iso, upcase, lowcase, titlecase) = udict[code]
# generate char to char direct common and simple conversions # generate char to char direct common and simple conversions
# uppercase to lowercase # uppercase to lowercase
@ -382,7 +382,7 @@ def emit_bool_trie(f, name, t_data, is_pub=True):
global bytes_old, bytes_new global bytes_old, bytes_new
bytes_old += 8 * len(t_data) bytes_old += 8 * len(t_data)
CHUNK = 64 CHUNK = 64
rawdata = [False] * 0x110000; rawdata = [False] * 0x110000
for (lo, hi) in t_data: for (lo, hi) in t_data:
for cp in range(lo, hi + 1): for cp in range(lo, hi + 1):
rawdata[cp] = True rawdata[cp] = True