adds aye/nay to parseYN() #1

Open
x4l9r46gv6 wants to merge 1 commits from x4l9r46gv6/uvgotmail:main into main
1 changed files with 2 additions and 2 deletions
Showing only changes of commit f5293a5be8 - Show all commits

View File

@ -6,8 +6,8 @@ import atexit
def parseYN(s, default = False):
if default == False:
return s.lower() in ['true', '1', 't', 'y', 'yes', 'yeah', 'yup', 'certainly', 'uh-huh', 'go for it']
else: return not s.lower() in ['false', '0', 'f', 'n', 'no', 'nah', 'nope', 'certainly not', 'nuh-huh', 'bugger that']
return s.lower() in ['true', '1', 't', 'y', 'yes', 'yeah', 'yup', 'certainly', 'uh-huh', 'go for it', 'aye']
else: return not s.lower() in ['false', '0', 'f', 'n', 'no', 'nah', 'nope', 'certainly not', 'nuh-huh', 'bugger that', 'nay']
def getYN(b):
return "yes" if b else "no"