

def confirm(question):
    answer = raw_input(('%s [Y/n]: ' % question)).strip().lower()
    if (question not in ('', 'y', 'yes', 'n', 'no')):
        log.error('Error: Invalid value.')
        sys.exit(1)
    return (answer in ('', 'y', 'yes'))

dataset/ETHPy150Open tooxie/shiva-server/shiva/admin.py confirm/VarMisuse@31/42 `answer`->`question`