Skip to content

Commit 6947752

Browse files
committed
small repl cleanup
1 parent 864af39 commit 6947752

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pyconlang/repl.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,6 @@ def session_style(self) -> Style:
135135
}
136136
)
137137

138-
def on_key_press(self, event: KeyPressEvent) -> None:
139-
self.debug = str(event)
140-
141138
@cached_property
142139
def session_bindings(self) -> KeyBindings:
143140
bindings = KeyBindings()
@@ -183,7 +180,7 @@ def __post_init__(self) -> None:
183180
def rprompt(self) -> HTML:
184181
mode_str = "/".join(
185182
[
186-
f"<b>{mode.name[0]}{mode.name[1:].lower()}</b>"
183+
f"<b>{mode.name.capitalize()}</b>"
187184
if mode is self.mode
188185
else mode.name[0]
189186
for mode in Mode

0 commit comments

Comments
 (0)