From 6b6d14f48a0ea066d769a78d744f1a4fdbd5f269 Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Sat, 2 Apr 2016 20:48:04 +0300 Subject: [PATCH] Replace raw_input with six.moves.input Fixes #5441 --- mediagoblin/gmg_commands/util.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mediagoblin/gmg_commands/util.py b/mediagoblin/gmg_commands/util.py index 63e39ca9..4a4a9a74 100644 --- a/mediagoblin/gmg_commands/util.py +++ b/mediagoblin/gmg_commands/util.py @@ -18,6 +18,8 @@ from mediagoblin import app import getpass +import six + def setup_app(args): """ @@ -33,7 +35,7 @@ def prompt_if_not_set(variable, text, password=False): """ if variable is None: if not password: - variable=raw_input(text + u' ') + variable = six.moves.input(text + u' ') else: variable=getpass.getpass(text + u' ') -- 2.25.1