Skip to content

Commit 4224a3f

Browse files
fix bugs I introduced in prev 5 commits
1 parent e9bdd06 commit 4224a3f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bpython/curtsiesfrontend/repl.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
import bpython.curtsiesfrontend.replpainter as paint
3131
import curtsies.events as events
3232
from bpython.curtsiesfrontend.friendly import NotImplementedError
33-
from bpython.curtsiesfrontend.coderunner import CodeRunner, FakeOutput
33+
from bpython.curtsiesfrontend.coderunner import CodeRunner, FakeOutput, Unfinished
3434

3535
#TODO figure out how config.list_win_visible behaves and implement it, or stop using it
3636
#TODO other autocomplete modes (also fix in other bpython implementations)
@@ -206,7 +206,7 @@ def smarter_request_refresh():
206206
self.cursor_offset_in_line = 0 # from the left, 0 means first char
207207
self.done = True # whether the current block is finished yet
208208

209-
self.coderunner = CodeRunner(self.interp, request_refresh)
209+
self.coderunner = CodeRunner(self.interp, self.request_refresh)
210210
self.stdout = FakeOutput(self.coderunner, self.send_to_stdout)
211211
self.stderr = FakeOutput(self.coderunner, self.send_to_stderr)
212212
self.stdin = FakeStdin(self.coderunner, self)
@@ -513,7 +513,7 @@ def run_code_and_maybe_finish(self, for_code=None):
513513
if r:
514514
logging.debug("----- Running finish command stuff -----")
515515
logging.debug("saved_indent: %r", self.saved_indent)
516-
unfinished = r == 'unfinished'
516+
unfinished = r == Unfinished
517517
err = self.saved_predicted_parse_error
518518
self.saved_predicted_parse_error = False
519519

0 commit comments

Comments
 (0)