From 5896df1e64e23d7e423f0029f7e9ff56f401148c Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Fri, 30 Nov 2018 15:03:09 +0100 Subject: [PATCH] Cleanup whitespace --- cfgs.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cfgs.py b/cfgs.py index ff55c26..4d66ff5 100755 --- a/cfgs.py +++ b/cfgs.py @@ -104,7 +104,7 @@ def init_dialog(): if not git_email: git_email = config['GIT']['EMAIL'] config['GIT']['EMAIL'] = git_email - + config['DEFAULT']['INITIALIZED'] = "True" update_config(config) @@ -254,13 +254,13 @@ def git_push(path, message = "configuration update"): status = subprocess.call(["git", "add", "-A"], cwd=path) == 0 status |= subprocess.call(["git", "commit", "-a", "-m", message], cwd=path) == 0 status |= subprocess.call(["git", "push", "-u", "origin", "master"], cwd=path) == 0 - + return status def git_pull(path): status = subprocess.call(["git", "pull", "origin", "master"], cwd=path) == 0 - + return status @@ -291,7 +291,7 @@ def init_local_repo(): # init git repo if not git_is_repo(config['DEFAULT']['LOCAL_STORAGE_DIRECTORY']): git_init_repo(config['DEFAULT']['LOCAL_STORAGE_DIRECTORY']) - + git_check_status(git_set_author(config['DEFAULT']['LOCAL_STORAGE_DIRECTORY'], config['GIT']['USER'], config['GIT']['EMAIL'])) git_check_status(git_set_upstream(config['DEFAULT']['LOCAL_STORAGE_DIRECTORY'], config['GIT']['REMOTE_REPOSITORY'])) @@ -451,7 +451,7 @@ def restore(): target_directory = os.path.abspath(os.path.join(abs_path, os.pardir)) if not os.path.exists(target_directory): os.makedirs(target_directory) - + if os.path.exists(abs_path): os.remove(abs_path) @@ -474,7 +474,7 @@ def restore(): def main(argv): if not check_dependencies(): sys.exit(1) - + if len(argv) == 2: arg = argv[1] if arg == "init":