From 2098b777e6a193f50d3ac78d8f938a548ad66c50 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 5 Mar 2020 13:02:01 +0300 Subject: [PATCH] Fix(init.py): Do not intercept EOF in `myinput` --- lib/python/init.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/python/init.py b/lib/python/init.py index 7f04849..eb832c1 100644 --- a/lib/python/init.py +++ b/lib/python/init.py @@ -132,10 +132,7 @@ def init(): def myinput(prompt=None): save_stdout = sys.stdout sys.stdout = sys.__stdout__ - try: - result = builtin_input(prompt) - except EOFError: - result = None + result = builtin_input(prompt) sys.stdout = save_stdout return result -- 2.39.5