From a84d25bc9d4c779739bdefee5d2e46d1e6d40243 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sun, 24 Jul 2011 10:17:47 -0400 Subject: [PATCH] clarify what verify_config() returns --- core/config.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/config.py b/core/config.py index 29c3fe1..411c187 100644 --- a/core/config.py +++ b/core/config.py @@ -44,7 +44,8 @@ def load_config(): def verify_config(): """Check to see if we have a valid config file, and if not, notify the user. If there is no config file at all, offer to make one; otherwise, - exit.""" + exit. If everything goes well, return True if stored passwords are + encrypted in the file, or False if they are not.""" if path.exists(config_path): load_config() try: @@ -141,12 +142,12 @@ def schedule(minute, hour, month_day, month, week_day): def make_new_config(): """Make a new config file based on the user's input.""" makedirs(config_dir) - + encrypt = raw_input("Would you like to encrypt passwords stored in " + "config.json? [y/n] ") if encrypt.lower().startswith("y"): is_encrypted = True else: is_encrypted = False - + return is_encrypted