Skip to content

Commit 2186bf7

Browse files
committed
Added some comments
1 parent 56f530c commit 2186bf7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mathics_scanner/build_tables.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def compile_tables(data: dict) -> dict:
4343
"""
4444

4545
# Conversion from WL to the fully qualified names
46+
# We filter the dictionary after it's first created to redundant entries
4647
wl_to_ascii_dict = {v["wl-unicode"]: get_plain_text(k, v, False)
4748
for k, v in data.items()}
4849
wl_to_ascii_dict = {k: v for k, v in wl_to_ascii_dict.items() if k != v}
@@ -57,6 +58,7 @@ def compile_tables(data: dict) -> dict:
5758
wl_to_unicode_re = re_from_keys(wl_to_unicode_dict)
5859

5960
# Conversion from unicode to wl
61+
# We filter the dictionary after it's first created to redundant entries
6062
unicode_to_wl_dict = {v["unicode-equivalent"]: v["wl-unicode"]
6163
for v in data.values()
6264
if "unicode-equivalent" in v

0 commit comments

Comments
 (0)