diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2011-12-03 21:56:30 -0600 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2011-12-03 21:56:30 -0600 |
commit | bbac7663f4b05430592ac5d39f056029dc11db92 (patch) | |
tree | ffdad909f468c3ec8e80f58218a69287263f78c0 /mediagoblin/gmg_commands/util.py | |
parent | cfd20ed6a153ce8cf30063880d4149d6827ee265 (diff) | |
download | mediagoblin-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.py | 6 |
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) |