MINOR: Modify release.py prompt to only accept y/n

This commit is contained in:
David Arthur 2020-02-28 14:29:01 -05:00
parent c9d01dbbf8
commit 1b98aee9dc
1 changed files with 2 additions and 0 deletions

View File

@ -162,6 +162,8 @@ def regexReplace(path, pattern, replacement):
def user_ok(msg):
ok = raw_input(msg)
while ok.strip() not in ('y', 'n'):
ok = raw_input("Please enter either 'y' or 'n': ")
return ok.strip().lower() == 'y'
def sftp_mkdir(dir):