Skip to content

Commit 1a4a723

Browse files
committed
remove useless semicolon from python
1 parent 22c66c4 commit 1a4a723

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/etc/platform-intrinsics/generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ def __eq__(self, other):
285285

286286
class Pointer(Type):
287287
def __init__(self, elem, llvm_elem, const):
288-
self._elem = elem;
288+
self._elem = elem
289289
self._llvm_elem = llvm_elem
290290
self._const = const
291291
Type.__init__(self, BITWIDTH_POINTER)

src/etc/unicode.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -82,28 +82,28 @@ def load_unicode_data(f):
8282
canon_decomp = {}
8383
compat_decomp = {}
8484

85-
udict = {};
86-
range_start = -1;
85+
udict = {}
86+
range_start = -1
8787
for line in fileinput.input(f):
88-
data = line.split(';');
88+
data = line.split(';')
8989
if len(data) != 15:
9090
continue
91-
cp = int(data[0], 16);
91+
cp = int(data[0], 16)
9292
if is_surrogate(cp):
9393
continue
9494
if range_start >= 0:
9595
for i in xrange(range_start, cp):
96-
udict[i] = data;
97-
range_start = -1;
96+
udict[i] = data
97+
range_start = -1
9898
if data[1].endswith(", First>"):
99-
range_start = cp;
100-
continue;
101-
udict[cp] = data;
99+
range_start = cp
100+
continue
101+
udict[cp] = data
102102

103103
for code in udict:
104104
(code_org, name, gencat, combine, bidi,
105105
decomp, deci, digit, num, mirror,
106-
old, iso, upcase, lowcase, titlecase) = udict[code];
106+
old, iso, upcase, lowcase, titlecase) = udict[code]
107107

108108
# generate char to char direct common and simple conversions
109109
# uppercase to lowercase
@@ -382,7 +382,7 @@ def emit_bool_trie(f, name, t_data, is_pub=True):
382382
global bytes_old, bytes_new
383383
bytes_old += 8 * len(t_data)
384384
CHUNK = 64
385-
rawdata = [False] * 0x110000;
385+
rawdata = [False] * 0x110000
386386
for (lo, hi) in t_data:
387387
for cp in range(lo, hi + 1):
388388
rawdata[cp] = True

0 commit comments

Comments
 (0)