Python 3 compatibility: convert raw_input to input

Change-Id: I86699cc6d880c137e80183d7196874ec0f7893e7
Closes-Bug: #1797760
This commit is contained in:
zhulingjie 2018-10-08 00:34:48 -04:00 committed by wu.chunyang
parent 117d8e966f
commit 5edaac5246
1 changed files with 1 additions and 1 deletions

View File

@ -248,7 +248,7 @@ for base_path in opts.files:
print('The yaml file will be overwritten and the original saved as %s'
% backup_filename)
if not (opts.yes or raw_input("Overwrite %s? [y/n] " % base_path).lower() == 'y'):
if not (opts.yes or input("Overwrite %s? [y/n] " % base_path).lower() == 'y'):
print("Skipping file %s" % base_path)
continue