Sfoglia il codice sorgente

formatting cleanup

pull/307/head
William Ting 10 anni fa
parent
commit
2100f993b3
3 ha cambiato i file con 2 aggiunte e 3 eliminazioni
  1. +1
    -1
      bin/autojump
  2. +1
    -1
      bin/autojump_data.py
  3. +0
    -1
      install.py

+ 1
- 1
bin/autojump Vedi File

@ -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,

+ 1
- 1
bin/autojump_data.py Vedi File

@ -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'])

+ 0
- 1
install.py Vedi File

@ -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)

Caricamento…
Annulla
Salva