PEP-8'ifying prompt_if_not_set
authorChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 4 Dec 2011 03:56:30 +0000 (21:56 -0600)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 4 Dec 2011 03:56:30 +0000 (21:56 -0600)
mediagoblin/gmg_commands/util.py

index af1721056cbc9330e9f8439450f043ee20c096fd..004f9e49da17f5ba6eef24bb1a240577383ff1fb 100644 (file)
@@ -27,13 +27,13 @@ def setup_app(args):
 
     return mgoblin_app
 
-def prompt_if_not_set(variable,text,password=False):
+def prompt_if_not_set(variable, text, password=False):
     """
     Checks if the variable is None and prompt for a value if it is
     """
-    if (variable==None):
+    if variable is None:
         if not password:
-            variable=raw_input(text+' ')
+            variable=raw_input(text + u' ')
         else:
             variable=getpass.getpass(text)