Skip to content

Commit 1b98aee

Browse files
committed
MINOR: Modify release.py prompt to only accept y/n
1 parent c9d01db commit 1b98aee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

release.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ def regexReplace(path, pattern, replacement):
162162

163163
def user_ok(msg):
164164
ok = raw_input(msg)
165+
while ok.strip() not in ('y', 'n'):
166+
ok = raw_input("Please enter either 'y' or 'n': ")
165167
return ok.strip().lower() == 'y'
166168

167169
def sftp_mkdir(dir):

0 commit comments

Comments
 (0)