bootstrap.py
def confirm_overwrite(path):
    'Ask the user to overwrite a file'
    while True:
        answer = raw_input('%s exists, overwrite it? (a/y/n) ' %
                           os.path.basename(path))

        if answer in ('y', 'n', 'a'):
            break

    return answer
Ask the user to overwrite a file
Ask the user to overwrite a file
Ask the user to overwrite a file
def confirm_overwrite(path):
    while True:
        answer = raw_input('%s exists, overwrite it? (a/y/n) ' %
                           os.path.basename(path))
        if answer in ('y', 'n', 'a'):
            break
    return answer
def confirm_overwrite ( path ) : while True : answer = raw_input ( '%s exists, overwrite it? (a/y/n) ' % os . path . basename ( path ) ) if answer in ( 'y' , 'n' , 'a' ) : break return answer
Ask the user to overwrite a file
Ask the user to overwrite a file
'Ask the user to overwrite a file'
path