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:
parent
e0dec8273e
commit
d18125aec1
@ -15,6 +15,7 @@
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
|
from six import moves
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
@ -88,7 +89,7 @@ def get_parser():
|
|||||||
|
|
||||||
|
|
||||||
def conversion():
|
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 "
|
"alarms to composite alarms, please type 'yes' to "
|
||||||
"confirm: ")
|
"confirm: ")
|
||||||
if confirm != 'yes':
|
if confirm != 'yes':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user