Skip to content

Commit 086b761

Browse files
committed
Remove _STRING_CAPABILITY_NAMES
1 parent 71ae3c0 commit 086b761

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lib/_pyrepl/terminfo.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@
7171
"OTGV", "OTGC","meml", "memu", "box1"
7272
)
7373
# fmt: on
74-
_STRING_CAPABILITY_NAMES = {name: i for i, name in enumerate(_STRING_NAMES)}
7574

7675

7776
def _get_terminfo_dirs() -> list[Path]:
@@ -414,7 +413,7 @@ def _parse_terminfo_file(self, terminal_name: str) -> None:
414413

415414
# Extract strings from string table
416415
capabilities = {}
417-
for cap, off in zip(_STRING_CAPABILITY_NAMES, string_offsets):
416+
for cap, off in zip(_STRING_NAMES, string_offsets):
418417
if off < 0:
419418
# CANCELLED_STRING; we do not store those
420419
continue

0 commit comments

Comments
 (0)