forked from kaylee/uvgotmail
adds aye/nay to parseYN()
This commit is contained in:
parent
b5cce2a049
commit
f5293a5be8
|
@ -6,8 +6,8 @@ import atexit
|
||||||
|
|
||||||
def parseYN(s, default = False):
|
def parseYN(s, default = False):
|
||||||
if default == False:
|
if default == False:
|
||||||
return s.lower() in ['true', '1', 't', 'y', 'yes', 'yeah', 'yup', 'certainly', 'uh-huh', 'go for it']
|
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']
|
else: return not s.lower() in ['false', '0', 'f', 'n', 'no', 'nah', 'nope', 'certainly not', 'nuh-huh', 'bugger that', 'nay']
|
||||||
|
|
||||||
def getYN(b):
|
def getYN(b):
|
||||||
return "yes" if b else "no"
|
return "yes" if b else "no"
|
||||||
|
|
Loading…
Reference in New Issue