Coding style.

- Tidy up.
This commit is contained in:
Andrew Hamilton 2021-04-11 01:55:47 +10:00
parent 09e7c04e26
commit 03db3002b4

View file

@ -490,7 +490,10 @@ def context(loop, appearance_changed_event, screen_widget, exit_loop=None):
with terminal.alternate_buffer(), terminal.interactive(), \
terminal.mouse_tracking():
loop.add_reader(sys.stdin, on_terminal_input, screen_widget)
yield
try:
yield
finally:
loop.remove_reader(sys.stdin)
##########################