Use python3 input.
This commit is contained in:
parent
f38efab999
commit
ee0db7a50d
1 changed files with 5 additions and 4 deletions
|
|
@ -10,6 +10,7 @@ menu. Run the script with the -h flag to see usage information.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
from builtins import input
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import signal
|
import signal
|
||||||
|
|
@ -550,7 +551,7 @@ def check_database():
|
||||||
res = ""
|
res = ""
|
||||||
while res.upper() != "Y":
|
while res.upper() != "Y":
|
||||||
# ask for permission
|
# ask for permission
|
||||||
res = raw_input("Continue [Y]/N: ")
|
res = input("Continue [Y]/N: ")
|
||||||
if res.upper() == "N":
|
if res.upper() == "N":
|
||||||
sys.exit()
|
sys.exit()
|
||||||
elif not res:
|
elif not res:
|
||||||
|
|
@ -933,18 +934,18 @@ def run_menu():
|
||||||
# menu loop
|
# menu loop
|
||||||
|
|
||||||
print(MENU)
|
print(MENU)
|
||||||
inp = raw_input(" option > ")
|
inp = input(" option > ")
|
||||||
|
|
||||||
# quitting and help
|
# quitting and help
|
||||||
if inp.lower() == 'q':
|
if inp.lower() == 'q':
|
||||||
return
|
return
|
||||||
elif inp.lower() == 'h':
|
elif inp.lower() == 'h':
|
||||||
print(HELP_ENTRY)
|
print(HELP_ENTRY)
|
||||||
raw_input("press <return> to continue ...")
|
input("press <return> to continue ...")
|
||||||
continue
|
continue
|
||||||
elif inp.lower() in ('v', 'i', 'a'):
|
elif inp.lower() in ('v', 'i', 'a'):
|
||||||
print(show_version_info(about=True))
|
print(show_version_info(about=True))
|
||||||
raw_input("press <return> to continue ...")
|
input("press <return> to continue ...")
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# options
|
# options
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue