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
1 changed files with 2 additions and 2 deletions

View File

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