scripts: python3: rename raw_input to input

Renamed raw_input to input as raw_input does not
exist in python 3.

(From OE-Core rev: 32765150b860ecdea74b4494b9531f5bc40252bb)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ed Bartosh 2016-06-02 13:12:49 +03:00 committed by Richard Purdie
parent 90e7feeb64
commit 793b83a3c6
2 changed files with 4 additions and 4 deletions

View File

@ -67,7 +67,7 @@ try:
i = i[4096:] i = i[4096:]
if sys.stdin in ready: if sys.stdin in ready:
echonocbreak(sys.stdin.fileno()) echonocbreak(sys.stdin.fileno())
o = raw_input() o = input()
cbreaknoecho(sys.stdin.fileno()) cbreaknoecho(sys.stdin.fileno())
pty.write(o + "\n") pty.write(o + "\n")
except (IOError, OSError) as e: except (IOError, OSError) as e:

View File

@ -44,12 +44,12 @@ def getPayloadLimit(url):
def ask_for_contactdetails(): def ask_for_contactdetails():
print("Please enter your name and your email (optionally), they'll be saved in the file you send.") print("Please enter your name and your email (optionally), they'll be saved in the file you send.")
username = raw_input("Name (required): ") username = input("Name (required): ")
email = raw_input("E-mail (not required): ") email = input("E-mail (not required): ")
return username, email return username, email
def edit_content(json_file_path): def edit_content(json_file_path):
edit = raw_input("Review information before sending? (y/n): ") edit = input("Review information before sending? (y/n): ")
if 'y' in edit or 'Y' in edit: if 'y' in edit or 'Y' in edit:
editor = os.environ.get('EDITOR', None) editor = os.environ.get('EDITOR', None)
if editor: if editor: