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:
parent
4ecf62ca87
commit
71ac0a1fa3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user