Skip to content

Commit 32f0ab1

Browse files
Prep for release by removing exceptions on not implemented keybinds
1 parent f63aa3e commit 32f0ab1

File tree

3 files changed

+14
-22
lines changed

3 files changed

+14
-22
lines changed

bpython/curtsiesfrontend/friendly.py

Lines changed: 0 additions & 6 deletions
This file was deleted.

bpython/curtsiesfrontend/manual_readline.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
and the cursor location
55
in the order of description at http://www.bigsmoke.us/readline/shortcuts"""
66

7-
from bpython.curtsiesfrontend.friendly import NotImplementedError
87
import re
98
char_sequences = {}
109

@@ -104,7 +103,7 @@ def delete_word_to_cursor(cursor_offset, line):
104103

105104
@on('\x1by')
106105
def yank_prev_prev_killed_text(cursor_offset, line):
107-
raise NotImplementedError()
106+
return cursor_offset, line #TODO Not implemented
108107

109108
@on('\x14')
110109
def transpose_character_before_cursor(cursor_offset, line):
@@ -116,7 +115,7 @@ def transpose_character_before_cursor(cursor_offset, line):
116115

117116
@on('\x1bt')
118117
def transpose_word_before_cursor(cursor_offset, line):
119-
raise NotImplementedError()
118+
return cursor_offset, line #TODO Not implemented
120119

121120
# bonus functions (not part of readline)
122121

@@ -126,11 +125,11 @@ def delete_line(cursor_offset, line):
126125

127126
@on('\x1bu')
128127
def uppercase_next_word(cursor_offset, line):
129-
raise NotImplementedError()
128+
return cursor_offset, line #TODO Not implemented
130129

131130
@on('\x1bc')
132131
def titlecase_next_word(cursor_offset, line):
133-
raise NotImplementedError()
132+
return cursor_offset, line #TODO Not implemented
134133

135134
@on('\x1b\x7f')
136135
@on('\xff')

bpython/curtsiesfrontend/repl.py

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
from bpython.curtsiesfrontend import sitefix; sitefix.monkeypatch_quit()
3131
import bpython.curtsiesfrontend.replpainter as paint
3232
import curtsies.events as events
33-
from bpython.curtsiesfrontend.friendly import NotImplementedError
3433
from bpython.curtsiesfrontend.coderunner import CodeRunner, FakeOutput
3534

3635
#TODO figure out how config.list_win_visible behaves and implement it, or stop using it
@@ -303,23 +302,23 @@ def process_event(self, e):
303302
self._current_line = self.rl_history.forward(False)
304303
self.cursor_offset_in_line = len(self._current_line)
305304
self.update_completion()
306-
elif e in key_dispatch[self.config.search_key]: #TODO
307-
raise NotImplementedError()
305+
elif e in key_dispatch[self.config.search_key]: #TODO Not Implemented
306+
pass
308307
#TODO add rest of history commands
309308

310309
# Need to figure out what these are, but I think they belong in manual_realine
311310
# under slightly different names
312-
elif e in key_dispatch[self.config.cut_to_buffer_key]: #TODO
313-
raise NotImplementedError()
314-
elif e in key_dispatch[self.config.yank_from_buffer_key]: #TODO
315-
raise NotImplementedError()
311+
elif e in key_dispatch[self.config.cut_to_buffer_key]: #TODO Not Implemented
312+
pass
313+
elif e in key_dispatch[self.config.yank_from_buffer_key]: #TODO Not Implemented
314+
pass
316315

317316
elif e in key_dispatch[self.config.clear_screen_key]:
318317
self.request_paint_to_clear_screen = True
319-
elif e in key_dispatch[self.config.last_output_key]: #TODO
320-
raise NotImplementedError()
321-
elif e in key_dispatch[self.config.show_source_key]: #TODO
322-
raise NotImplementedError()
318+
elif e in key_dispatch[self.config.last_output_key]: #TODO Not Implemented
319+
pass
320+
elif e in key_dispatch[self.config.show_source_key]: #TODO Not Implemented
321+
pass
323322
elif e in key_dispatch[self.config.suspend_key]:
324323
raise SystemExit()
325324
elif e in ("",) + key_dispatch[self.config.exit_key]:

0 commit comments

Comments
 (0)