mirror of https://github.com/borgbackup/borg.git
cosmetic changes for TW
This commit is contained in:
parent
ead93b2e58
commit
ad421a7a41
|
@ -995,7 +995,8 @@ class Archiver:
|
|||
an exclude pattern, the file is backed up.
|
||||
|
||||
Note that the default pattern style for `--pattern` and `--patterns-from` is
|
||||
shell style (`sh:`), so those patterns behave like rsync include/exclude patterns.
|
||||
shell style (`sh:`), so those patterns behave similar to rsync include/exclude
|
||||
patterns.
|
||||
|
||||
Patterns (`--pattern`) and excludes (`--exclude`) from the command line are
|
||||
considered first (in the order of appearance). Then patterns from `--pattern-from`
|
||||
|
|
|
@ -312,8 +312,7 @@ def load_excludes(fh):
|
|||
both line ends are ignored.
|
||||
"""
|
||||
patterns = (line for line in (i.strip() for i in fh) if not line.startswith('#'))
|
||||
return [parse_exclude_pattern(pattern)
|
||||
for pattern in patterns if pattern]
|
||||
return [parse_exclude_pattern(pattern) for pattern in patterns if pattern]
|
||||
|
||||
|
||||
def load_patterns(fh):
|
||||
|
|
Loading…
Reference in New Issue