Say what the loader does with a repeated name, and name the constant this one mirrors
Tests / vet + fmt + tests (pull_request) Successful in 1m25s
Tests / Gitea release from CHANGELOG.md (pull_request) Has been skipped

This commit is contained in:
2026-09-20 00:25:14 +02:00
parent 93d216616b
commit df8d15aeb6
+2 -2
View File
@@ -21,7 +21,7 @@ OUT = Path(__file__).resolve().parent.parent / "data" / "misc" / "protocol.tsv"
CACHE = Path(__file__).resolve().parent / "cache" CACHE = Path(__file__).resolve().parent / "cache"
COLUMNS = ["keyword", "name", "number"] COLUMNS = ["keyword", "name", "number"]
SKIP = ("Reserved", "deprecated") SKIP = ("Reserved", "deprecated")
SELECTOR = '[]{}"|' # table.go: what a key or name cell may not contain SELECTOR = '[]{}"|' # mirrors inSelector in table.go
def rows(text): def rows(text):
@@ -35,7 +35,7 @@ def rows(text):
def refuse_an_unselectable_row(table): def refuse_an_unselectable_row(table):
"""What the loader refuses at New, and a name that would select two rows rather than one.""" """What the loader refuses at New, and a name that names two rows rather than one."""
keywords, names = {}, {} keywords, names = {}, {}
for r in table: for r in table:
for column in ("keyword", "name"): for column in ("keyword", "name"):