From f5293a5be8cd4ea3d0438ad9c955fd96d3b73888 Mon Sep 17 00:00:00 2001 From: Aye Nay Aye <4l9r46gv6@mozmail.com> Date: Tue, 3 Dec 2024 09:02:49 -0300 Subject: [PATCH] adds aye/nay to parseYN() --- uvgotmail.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uvgotmail.py b/uvgotmail.py index 6a94c13..48c789c 100755 --- a/uvgotmail.py +++ b/uvgotmail.py @@ -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"