Replace raw_input with six.moves.input

Fixes #5441
This commit is contained in:
Berker Peksag 2016-04-02 20:48:04 +03:00
parent c7a5551fb5
commit 6b6d14f48a

View File

@ -18,6 +18,8 @@
from mediagoblin import app from mediagoblin import app
import getpass import getpass
import six
def setup_app(args): def setup_app(args):
""" """
@ -33,7 +35,7 @@ def prompt_if_not_set(variable, text, password=False):
""" """
if variable is None: if variable is None:
if not password: if not password:
variable=raw_input(text + u' ') variable = six.moves.input(text + u' ')
else: else:
variable=getpass.getpass(text + u' ') variable=getpass.getpass(text + u' ')