def confirm(question):
    answer = raw_input('%s [Y/n]: ' % question).strip().lower()
    if answer == ('', '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/operator `not in` -> `==`