cosmetic changes for TW

This commit is contained in:
Alexander 'Leo' Bergolth 2017-01-13 11:00:16 +01:00
parent ead93b2e58
commit ad421a7a41
2 changed files with 3 additions and 3 deletions

View File

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

View File

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