Skip to content

Commit df158dd

Browse files
remove unused property
1 parent eb94d34 commit df158dd

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

bpython/curtsiesfrontend/repl.py

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ def proccess_control_event(self, e):
406406
if self.stdin.has_focus:
407407
self.stdin.process_event(ee)
408408
else:
409-
self.process_simple_event(ee)
409+
self.process_simple_keypress(ee)
410410
self.update_completion()
411411

412412
elif self.stdin.has_focus:
@@ -596,7 +596,7 @@ def only_whitespace_left_of_cursor():
596596
or self.matches_iter.next()
597597
self.cursor_offset, self.current_line = self.matches_iter.cur_line()
598598

599-
def process_simple_event(self, e):
599+
def process_simple_keypress(self, e):
600600
if e in (u"<Ctrl-j>", u"<Ctrl-m>", u"<PADENTER>"):
601601
self.on_enter()
602602
while self.fake_refresh_requested:
@@ -618,7 +618,7 @@ def send_current_block_to_external_editor(self, filename=None):
618618
self.clear_current_block()
619619
with self.in_paste_mode():
620620
for e in events:
621-
self.process_simple_event(e)
621+
self.process_simple_keypress(e)
622622
self.current_line = ''
623623
self.cursor_offset = len(self.current_line)
624624

@@ -655,7 +655,12 @@ def add_normal_character(self, char):
655655
self.cursor_offset = max(0, self.cursor_offset - 4)
656656

657657
def update_completion(self, tab=False):
658-
"""Update autocomplete info; self.matches_iter and self.argspec"""
658+
"""Update visible docstring and matches, and possibly hide/show completion box"""
659+
#Update autocomplete info; self.matches_iter and self.argspec
660+
#Should be called whenever the completion box might need to appear / dissapear
661+
# * when current line changes, unless via selecting a match
662+
# * when cursor position changes
663+
# *
659664
self.list_win_visible = BpythonRepl.complete(self, tab)
660665
#look for history stuff
661666

@@ -1047,13 +1052,6 @@ def __repr__(self):
10471052
s += '>'
10481053
return s
10491054

1050-
## Provided for bpython.repl.Repl
1051-
def _get_current_line(self):
1052-
return self._current_line
1053-
def _set_current_line(self, line):
1054-
self._current_line = line
1055-
current_line = property(_get_current_line, _set_current_line, None,
1056-
"The current line")
10571055
def echo(self, msg, redraw=True):
10581056
"""
10591057
Notification that redrawing the current line is necessary (we don't

0 commit comments

Comments
 (0)