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: Ib8ee47730f5358b3929612c5a966bfb56df022f3
This commit is contained in:
gecong1973 2016-08-26 11:20:46 +08:00 committed by gecong
parent 4ecf62ca87
commit 71ac0a1fa3

View File

@ -108,7 +108,7 @@ class _Main(object):
if options.interactive:
while True:
try:
input = raw_input(">>> ")
input = input(">>> ")
except (EOFError, KeyboardInterrupt):
self.stdout.write("\nBye.\n")
break