From 2100f993b3b9b1cf5ae0f943589e6125194846ff Mon Sep 17 00:00:00 2001 From: William Ting Date: Sat, 28 Jun 2014 12:38:31 -0700 Subject: [PATCH] formatting cleanup --- bin/autojump | 2 +- bin/autojump_data.py | 2 +- install.py | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/autojump b/bin/autojump index d2577f8..a44e86b 100755 --- a/bin/autojump +++ b/bin/autojump @@ -282,7 +282,7 @@ def match_consecutive(needles, haystack, ignore_case=False): regex_no_sep_end = regex_no_sep + '$' regex_one_sep = regex_no_sep + sep + regex_no_sep # can't use compiled regex because of flags - regex_needle = regex_one_sep.join(needles).replace('\\', '\\\\') + regex_no_sep_end + regex_needle = regex_one_sep.join(needles).replace('\\', '\\\\') + regex_no_sep_end # noqa regex_flags = re.IGNORECASE | re.UNICODE if ignore_case else re.UNICODE found = lambda entry: re.search( regex_needle, diff --git a/bin/autojump_data.py b/bin/autojump_data.py index f367a59..da86c90 100644 --- a/bin/autojump_data.py +++ b/bin/autojump_data.py @@ -137,5 +137,5 @@ def save(config, data): # create backup file if it doesn't exist or is older than BACKUP_THRESHOLD if not os.path.exists(config['backup_path']) or \ - (time() - os.path.getmtime(config['backup_path']) > BACKUP_THRESHOLD): #noqa + (time() - os.path.getmtime(config['backup_path']) > BACKUP_THRESHOLD): # noqa shutil.copy(config['data_path'], config['backup_path']) diff --git a/install.py b/install.py index 0e8d95a..9fc3713 100755 --- a/install.py +++ b/install.py @@ -206,7 +206,6 @@ def main(args): if args.custom_install: modify_autojump_sh(etc_dir, args.dryrun) - print_post_installation_message(etc_dir, bin_dir)