Revert "Avoid rare crash"

This reverts commit 23a88401b7.
* Didn't fix the issue, better fix available upstream
This commit is contained in:
2Shirt 2019-01-08 19:23:38 -07:00
parent c4575db44c
commit ac259c9c37
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -102,12 +102,7 @@ def ask(prompt='Kotaero!'):
answer = None answer = None
prompt = '{} [Y/N]: '.format(prompt) prompt = '{} [Y/N]: '.format(prompt)
while answer is None: while answer is None:
try: tmp = input(prompt)
tmp = input(prompt)
except EOFError:
# Just try again?
sleep(1)
tmp = input(prompt)
if re.search(r'^y(es|)$', tmp, re.IGNORECASE): if re.search(r'^y(es|)$', tmp, re.IGNORECASE):
answer = True answer = True
elif re.search(r'^n(o|ope|)$', tmp, re.IGNORECASE): elif re.search(r'^n(o|ope|)$', tmp, re.IGNORECASE):
@ -417,12 +412,7 @@ def non_clobber_rename(full_path):
def pause(prompt='Press Enter to continue... '): def pause(prompt='Press Enter to continue... '):
"""Simple pause implementation.""" """Simple pause implementation."""
try: input(prompt)
input(prompt)
except EOFError:
# Just try again?
sleep(1)
input(prompt)
def ping(addr='google.com'): def ping(addr='google.com'):