Replace raw_input with input to make PY3 compatible

The raw_input() raises NameError: name 'raw_input' is not defined in
python3. This patch fixes it by replacing raw_input with input to make
PY3 compatible.

Change-Id: I03f38e23794807c572ccde0001b3e24c8a2c3407
Closes-Bug: #1595827
This commit is contained in:
yuyafei 2016-07-04 20:13:22 +08:00
parent e0dec8273e
commit d18125aec1

View File

@ -15,6 +15,7 @@
"""
import datetime
from six import moves
import uuid
import argparse
@ -88,7 +89,7 @@ def get_parser():
def conversion():
confirm = raw_input("This tool is used for converting the combination "
confirm = moves.input("This tool is used for converting the combination "
"alarms to composite alarms, please type 'yes' to "
"confirm: ")
if confirm != 'yes':