Skip to content

Commit edfb628

Browse files
Correctly exit cli, using set_exit when typing Ctrl-Z.
1 parent 79c24fe commit edfb628

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ptpython/repl.py

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

9797
if line.lstrip().startswith('\x1a'):
9898
# When the input starts with Ctrl-Z, quit the REPL.
99-
cli.set_return_value(None)
99+
cli.set_exit()
100100

101101
elif line.lstrip().startswith('!'):
102102
# Run as shell command

0 commit comments

Comments
 (0)