Skip to content

Commit e66d5d6

Browse files
TODO cleanup
1 parent cad9c02 commit e66d5d6

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

bpython/curtsiesfrontend/repl.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535

3636
#TODO figure out how config.list_win_visible behaves and implement it, or stop using it
3737
#TODO other autocomplete modes (also fix in other bpython implementations)
38-
#TODO add buffering to stdout to speed up output.
3938

4039
from bpython.keys import cli_key_dispatch as key_dispatch
4140

@@ -311,9 +310,6 @@ def process_event(self, e):
311310
elif e in ("\n", "\r", "PAD_ENTER"):
312311
self.on_enter()
313312
self.update_completion()
314-
elif e in ["\x00", "\x11"]:
315-
pass #dunno what these are, but they screw things up #TODO find out
316-
#TODO use a whitelist instead of a blacklist!
317313
elif e == '\t': # tab
318314
self.on_tab()
319315
elif e in ("KEY_BTAB",): # shift-tab
@@ -435,12 +431,9 @@ def add_normal_character(self, char):
435431
if self.config.cli_trim_prompts and self._current_line.startswith(">>> "):
436432
self._current_line = self._current_line[4:]
437433
self.cursor_offset_in_line = max(0, self.cursor_offset_in_line - 4)
438-
#TODO deal with characters that take up more than one space? do we care?
439434

440435
def update_completion(self, tab=False):
441436
"""Update autocomplete info; self.matches and self.argspec"""
442-
#TODO do we really have to do something this ugly? Can we rename it?
443-
# this method stolen from bpython.cli
444437

445438
if self.list_win_visible and not self.config.auto_display_list:
446439
self.list_win_visible = False
@@ -520,7 +513,6 @@ def run_code_and_maybe_finish(self, for_code=None):
520513

521514
def keyboard_interrupt(self):
522515
#TODO factor out the common cleanup from running a line
523-
#TODO make rewind work properly with ctrl-c'd infinite loops
524516
self.cursor_offset_in_line = -1
525517
self.unhighlight_paren()
526518
self.display_lines.extend(self.display_buffer_lines)

0 commit comments

Comments
 (0)