aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/gmg_commands/util.py
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2011-12-03 21:56:30 -0600
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-12-03 21:56:30 -0600
commitbbac7663f4b05430592ac5d39f056029dc11db92 (patch)
treeffdad909f468c3ec8e80f58218a69287263f78c0 /mediagoblin/gmg_commands/util.py
parentcfd20ed6a153ce8cf30063880d4149d6827ee265 (diff)
downloadmediagoblin-bbac7663f4b05430592ac5d39f056029dc11db92.tar.lz
mediagoblin-bbac7663f4b05430592ac5d39f056029dc11db92.tar.xz
mediagoblin-bbac7663f4b05430592ac5d39f056029dc11db92.zip
PEP-8'ifying prompt_if_not_set
Diffstat (limited to 'mediagoblin/gmg_commands/util.py')
-rw-r--r--mediagoblin/gmg_commands/util.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mediagoblin/gmg_commands/util.py b/mediagoblin/gmg_commands/util.py
index af172105..004f9e49 100644
--- a/mediagoblin/gmg_commands/util.py
+++ b/mediagoblin/gmg_commands/util.py
@@ -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)