mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-21 21:57:36 +00:00
patterns: use set literal instead of set([])
This commit is contained in:
parent
c5e3232187
commit
ef4cdfacae
1 changed files with 2 additions and 2 deletions
|
@ -302,13 +302,13 @@ def _match(self, path):
|
|||
return (self.regex.search(path) is not None)
|
||||
|
||||
|
||||
_PATTERN_CLASSES = set([
|
||||
_PATTERN_CLASSES = {
|
||||
FnmatchPattern,
|
||||
PathFullPattern,
|
||||
PathPrefixPattern,
|
||||
RegexPattern,
|
||||
ShellPattern,
|
||||
])
|
||||
}
|
||||
|
||||
_PATTERN_CLASS_BY_PREFIX = dict((i.PREFIX, i) for i in _PATTERN_CLASSES)
|
||||
|
||||
|
|
Loading…
Reference in a new issue