Skip to content

Commit ed86319

Browse files
committed
idna: simplify merging of mapping table ranges
1 parent 06b790a commit ed86319

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

idna/src/make_uts46_mapping_table.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,7 @@ def mergeable_key(r):
116116
# Assert we're seeing the surrogate case here.
117117
assert last_char == 0xd7ff
118118
assert next_char == 0xe000
119-
first = group[0][0]
120-
last = group[-1][1]
121-
mapping = group[0][2]
122-
unicode_str = group[0][3]
123-
optimized_ranges.append((first, last, mapping, unicode_str))
119+
optimized_ranges.append((group[0][0], group[-1][1]) + group[0][2:])
124120

125121
def is_single_char_range(r):
126122
(first, last, _, _) = r

0 commit comments

Comments
 (0)