1
0
Fork 0
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:
Marian Beermann 2017-05-01 17:03:49 +02:00
parent c5e3232187
commit ef4cdfacae

View file

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