Fix(init.py): Do not intercept EOF in `myinput`
authorOleg Broytman <phd@phdru.name>
Thu, 5 Mar 2020 10:02:01 +0000 (13:02 +0300)
committerOleg Broytman <phd@phdru.name>
Thu, 5 Mar 2020 10:02:01 +0000 (13:02 +0300)
lib/python/init.py

index 7f04849..eb832c1 100644 (file)
@@ -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