b.g.ExceptionGlobster(object) : class documentation

Part of bzrlib.globbing View In Hierarchy

A Globster that supports exception patterns.

Exceptions are ignore patterns prefixed with '!'. Exception patterns take precedence over regular patterns and cause a matching filename to return None from the match() function. Patterns using a '!!' prefix are highest precedence, and act as regular ignores. '!!' patterns are useful to establish ignores that apply under paths specified by '!' exception patterns.

Method __init__ Undocumented
Method match Searches for a pattern that matches the given filename.
def __init__(self, patterns):
Undocumented
def match(self, filename):
Searches for a pattern that matches the given filename.

:return A matching pattern or None if there is no matching pattern.

API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.