mirror of https://github.com/borgbackup/borg.git
patterns: use set literal instead of set([])
This commit is contained in:
parent
c5e3232187
commit
ef4cdfacae
|
@ -302,13 +302,13 @@ class RegexPattern(PatternBase):
|
|||
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 New Issue