X Tutup
Skip to content

Commit a0b027f

Browse files
committed
Merged in thomasballinger/bpython (pull request #26)
another possible #257 fix: run sys.exitfunc ourselves
2 parents 61e1584 + d8a2f1b commit a0b027f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bpython/cli.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1939,6 +1939,9 @@ def main_curses(scr, args, config, interactive=True, locals_=None,
19391939
clirepl.write(banner)
19401940
clirepl.write('\n')
19411941
exit_value = clirepl.repl()
1942+
if hasattr(sys, 'exitfunc'):
1943+
sys.exitfunc()
1944+
delattr(sys, 'exitfunc')
19421945

19431946
main_win.erase()
19441947
main_win.refresh()

0 commit comments

Comments
 (0)
X Tutup