Skip to content

Commit 53f7d12

Browse files
committed
Simplify initialization
1 parent 07560c2 commit 53f7d12

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

curtsies/events.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
chr_uni = chr
1313

1414

15-
CURTSIES_NAMES: Dict[bytes, str] = {}
16-
control_chars = {chr_byte(i): "<Ctrl-%s>" % chr(i + 0x60) for i in range(0x00, 0x1B)}
17-
CURTSIES_NAMES.update(control_chars)
15+
CURTSIES_NAMES = {chr_byte(i): "<Ctrl-%s>" % chr(i + 0x60) for i in range(0x00, 0x1B)}
1816
for i in range(0x00, 0x80):
1917
CURTSIES_NAMES[b"\x1b" + chr_byte(i)] = "<Esc+%s>" % chr(i)
2018
for i in range(0x00, 0x1B): # Overwrite the control keys with better labels

0 commit comments

Comments
 (0)