Skip to content

Commit 1e20081

Browse files
Renamed cli.set_exit to cli.exit (Change in prompt-toolkit.)
1 parent 172b6d2 commit 1e20081

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ptpython/key_bindings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def _(event):
204204
"""
205205
Really quit.
206206
"""
207-
event.cli.set_exit()
207+
event.cli.exit()
208208

209209
@handle(Keys.Any, filter=confirmation_visible)
210210
def _(event):

ptpython/repl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def compile_with_flags(code, mode):
9898

9999
if line.lstrip().startswith('\x1a'):
100100
# When the input starts with Ctrl-Z, quit the REPL.
101-
cli.set_exit()
101+
cli.exit()
102102

103103
elif line.lstrip().startswith('!'):
104104
# Run as shell command

0 commit comments

Comments
 (0)