From 5edaac5246a443d0f258cc1c056ce2f1d1850cfe Mon Sep 17 00:00:00 2001 From: zhulingjie Date: Mon, 8 Oct 2018 00:34:48 -0400 Subject: [PATCH] Python 3 compatibility: convert raw_input to input Change-Id: I86699cc6d880c137e80183d7196874ec0f7893e7 Closes-Bug: #1797760 --- tools/yaml-nic-config-2-script.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/yaml-nic-config-2-script.py b/tools/yaml-nic-config-2-script.py index f13e5ece40..a2b92baf54 100755 --- a/tools/yaml-nic-config-2-script.py +++ b/tools/yaml-nic-config-2-script.py @@ -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