From: Oleg Broytman Date: Thu, 5 Mar 2020 10:02:01 +0000 (+0300) Subject: Fix(init.py): Do not intercept EOF in `myinput` X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=2098b777e6a193f50d3ac78d8f938a548ad66c50;p=dotfiles.git Fix(init.py): Do not intercept EOF in `myinput` --- 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