aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/gmg_commands
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-04-02 20:48:04 +0300
committerBerker Peksag <berker.peksag@gmail.com>2016-04-02 20:48:04 +0300
commit6b6d14f48a0ea066d769a78d744f1a4fdbd5f269 (patch)
tree3233bb3ce257740e3e9d2384bcadea21e4467386 /mediagoblin/gmg_commands
parentc7a5551fb5c12fd617ef3383f9e384f9c31b9df8 (diff)
downloadmediagoblin-6b6d14f48a0ea066d769a78d744f1a4fdbd5f269.tar.lz
mediagoblin-6b6d14f48a0ea066d769a78d744f1a4fdbd5f269.tar.xz
mediagoblin-6b6d14f48a0ea066d769a78d744f1a4fdbd5f269.zip
Replace raw_input with six.moves.input
Fixes #5441
Diffstat (limited to 'mediagoblin/gmg_commands')
-rw-r--r--mediagoblin/gmg_commands/util.py4
1 files changed, 3 insertions, 1 deletions
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' ')