Skip to content

Commit 9a008bd

Browse files
sorciocorona10
andauthored
Apply suggestions from code review
Co-authored-by: Dong-hee Na <[email protected]>
1 parent 0eae907 commit 9a008bd

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

Tools/unicode/genmap_tchinese.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,9 @@
33
#
44
# Original Author: Hye-Shik Chang <[email protected]>
55
#
6-
from genmap_support import (
7-
open_mapping_file,
8-
loadmap,
9-
DecodeMapWriter,
10-
EncodeMapWriter,
11-
BufferedFiller,
12-
)
6+
import os
7+
8+
from genmap_support import *
139

1410

1511
# ranges for (lead byte, follower byte)
@@ -173,6 +169,7 @@ def main_tw():
173169
del cp950decmap[c1][c2]
174170

175171
with open('mappings_tw.h', 'w') as fp:
172+
print_autogen(fp, os.path.basename(__file__))
176173
write_big5_maps(fp, 'BIG5', 'big5', big5decmap, big5encmap)
177174
write_big5_maps(fp, 'CP950', 'cp950ext', cp950decmap, cp950encmap)
178175

@@ -217,6 +214,7 @@ def main_hkscs():
217214
)
218215
with open('mappings_hk.h', 'w') as fp:
219216
print('Generating BIG5HKSCS decode map...')
217+
print_autogen(fp, os.path.basename(__file__))
220218
writer = DecodeMapWriter(fp, 'big5hkscs', hkscsdecmap)
221219
writer.update_decode_map(BIG5HKSCS_C1, BIG5HKSCS_C2)
222220
writer.generate()

0 commit comments

Comments
 (0)