227
227
def __init__(self,patterns):
235
237
self._ignores = Globster(ignores)
238
240
def match(self, filename):
239
241
"""Searches for a pattern that matches the given filename.
241
243
:return A matching pattern or None if there is no matching pattern.
246
252
return self._ignores.match(filename)