Lines Matching refs:pattern
117 for pattern in patterns:
118 if not self.include_pattern(pattern, anchor=1):
120 pattern)
124 for pattern in patterns:
125 if not self.exclude_pattern(pattern, anchor=1):
127 "found matching '%s'"), pattern)
131 for pattern in patterns:
132 if not self.include_pattern(pattern, anchor=0):
134 "anywhere in distribution"), pattern)
138 for pattern in patterns:
139 if not self.exclude_pattern(pattern, anchor=0):
142 pattern)
147 for pattern in patterns:
148 if not self.include_pattern(pattern, prefix=dir):
151 pattern, dir)
156 for pattern in patterns:
157 if not self.exclude_pattern(pattern, prefix=dir):
160 pattern, dir)
180 def include_pattern(self, pattern, anchor=1, prefix=None, is_regex=0): argument
207 pattern_re = translate_pattern(pattern, anchor, prefix, is_regex)
209 pattern_re.pattern)
223 def exclude_pattern (self, pattern, argument
232 pattern_re = translate_pattern(pattern, anchor, prefix, is_regex)
234 pattern_re.pattern)
270 def glob_to_re(pattern): argument
276 pattern_re = fnmatch.translate(pattern)
293 def translate_pattern(pattern, anchor=1, prefix=None, is_regex=0): argument
300 if isinstance(pattern, str):
301 return re.compile(pattern)
303 return pattern
308 if pattern:
309 pattern_re = glob_to_re(pattern)