Keep test/lsp.py working when not on a tty

This commit is contained in:
Francois-Rene Rideau 2023-03-19 16:09:42 -04:00
parent 9a207ad27c
commit acaa019785

View File

@ -28,6 +28,7 @@ else:
import tty
# Turn off user input buffering so we get the input immediately,
# not only after a line break
if os.isatty(sys.stdin.fileno()):
tty.setcbreak(sys.stdin.fileno())