#NEWLINE# def _prompt_overwrite( path ) : #NEWLINE# #INDENT# if ( sys . version_info . major > 2 ) : #NEWLINE# #INDENT# ask = input #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ask = raw_input #NEWLINE# #UNINDENT# answer = ask ( ( '%s exists. Overwrite? [y/N] ' % path ) ) #NEWLINE# return ( True if ( answer . strip ( ) . lower ( ) [ : 1 ] == 'y' ) else False )