class documentation

class Pattern(object):

View In Hierarchy

A single ignore pattern.

Method __bytes__ Undocumented
Method __eq__ Undocumented
Method __init__ Undocumented
Method __repr__ Undocumented
Method __str__ Undocumented
Method match Try to match a path against this ignore pattern.
Instance Variable ignorecase Undocumented
Instance Variable is_exclude Undocumented
Instance Variable pattern Undocumented
Instance Variable _re Undocumented
def __bytes__(self):

Undocumented

Returns
bytesUndocumented
def __eq__(self, other):

Undocumented

Parameters
other:objectUndocumented
Returns
boolUndocumented
def __init__(self, pattern, ignorecase=False):

Undocumented

Parameters
pattern:bytesUndocumented
ignorecase:boolUndocumented
def __repr__(self):

Undocumented

Returns
strUndocumented
def __str__(self):

Undocumented

Returns
strUndocumented
def match(self, path):

Try to match a path against this ignore pattern.

Returns: boolean

Parameters
path:bytesPath to match (relative to ignore location)
Returns
boolUndocumented
ignorecase =

Undocumented

is_exclude: bool =

Undocumented

pattern =

Undocumented

_re =

Undocumented