Replace raw_input with six.moves.input
authorBerker Peksag <berker.peksag@gmail.com>
Sat, 2 Apr 2016 17:48:04 +0000 (20:48 +0300)
committerBerker Peksag <berker.peksag@gmail.com>
Sat, 2 Apr 2016 17:48:04 +0000 (20:48 +0300)
Fixes #5441

mediagoblin/gmg_commands/util.py

index 63e39ca9523ef48b63aad0048c2d93be48ecc2f8..4a4a9a743eef0c0bd201c31fc7d49a211a3a697a 100644 (file)
@@ -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' ')