forked from kaylee/uvgotmail
		
	Compare commits
	
		
			No commits in common. "main" and "main" have entirely different histories.
		
	
	
		
	
		
@ -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', 'aye']
 | 
			
		||||
    else: return not s.lower() in ['false', '0', 'f', 'n', 'no', 'nah', 'nope', 'certainly not', 'nuh-huh', 'bugger that', 'nay']
 | 
			
		||||
        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']
 | 
			
		||||
 | 
			
		||||
def getYN(b):
 | 
			
		||||
    return "yes" if b else "no"
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user